[−][src]Struct rulinalg::matrix::Column
Column of a matrix.
This struct points to a MatrixSlice
making up a column in a matrix.
You can deref this struct to retrieve
the raw column MatrixSlice.
Example
use rulinalg::matrix::BaseMatrix; let mat = matrix![1.0, 2.0; 3.0, 4.0]; let col = mat.col(1); assert_eq!((*col + 2.0).sum(), 10.0);
Methods from Deref<Target = MatrixSlice<'a, T>>
Trait Implementations
impl<'a, T> BaseMatrix<T> for Column<'a, T>[src]
fn rows(&self) -> usize[src]
fn cols(&self) -> usize[src]
fn row_stride(&self) -> usize[src]
fn as_ptr(&self) -> *const T[src]
fn is_empty(&self) -> bool[src]
fn as_slice(&self) -> MatrixSlice<T>[src]
unsafe fn get_unchecked(&self, index: [usize; 2]) -> &T[src]
fn col(&self, index: usize) -> Column<T>[src]
unsafe fn col_unchecked(&self, index: usize) -> Column<T>[src]
fn row(&self, index: usize) -> Row<T>[src]
unsafe fn row_unchecked(&self, index: usize) -> Row<T>[src]
ⓘImportant traits for SliceIter<'a, T>fn iter<'a>(&self) -> SliceIter<'a, T> where
T: 'a, [src]
ⓘImportant traits for SliceIter<'a, T>
T: 'a,
ⓘImportant traits for Cols<'a, T>fn col_iter(&self) -> Cols<T>[src]
ⓘImportant traits for Cols<'a, T>
ⓘImportant traits for Rows<'a, T>fn row_iter(&self) -> Rows<T>[src]
ⓘImportant traits for Rows<'a, T>
ⓘImportant traits for Diagonal<'a, T, M>fn diag_iter(&self, k: DiagOffset) -> Diagonal<T, Self>[src]
ⓘImportant traits for Diagonal<'a, T, M>
fn sum_rows(&self) -> Vector<T> where
T: Copy + Zero + Add<T, Output = T>, [src]
T: Copy + Zero + Add<T, Output = T>,
fn sum_cols(&self) -> Vector<T> where
T: Copy + Zero + Add<T, Output = T>, [src]
T: Copy + Zero + Add<T, Output = T>,
fn norm<N: MatrixNorm<T, Self>>(&self, norm: N) -> T where
T: Float, [src]
T: Float,
fn metric<'a, 'b, B, M>(&'a self, mat: &'b B, metric: M) -> T where
B: 'b + BaseMatrix<T>,
M: MatrixMetric<'a, 'b, T, Self, B>, [src]
B: 'b + BaseMatrix<T>,
M: MatrixMetric<'a, 'b, T, Self, B>,
fn sum(&self) -> T where
T: Copy + Zero + Add<T, Output = T>, [src]
T: Copy + Zero + Add<T, Output = T>,
fn min(&self, axis: Axes) -> Vector<T> where
T: Copy + PartialOrd, [src]
T: Copy + PartialOrd,
fn max(&self, axis: Axes) -> Vector<T> where
T: Copy + PartialOrd, [src]
T: Copy + PartialOrd,
fn into_matrix(self) -> Matrix<T> where
T: Copy, [src]
T: Copy,
fn select_rows<'a, I>(&self, rows: I) -> Matrix<T> where
T: Copy,
I: IntoIterator<Item = &'a usize>,
I::IntoIter: ExactSizeIterator + Clone, [src]
T: Copy,
I: IntoIterator<Item = &'a usize>,
I::IntoIter: ExactSizeIterator + Clone,
fn select_cols<'a, I>(&self, cols: I) -> Matrix<T> where
T: Copy,
I: IntoIterator<Item = &'a usize>,
I::IntoIter: ExactSizeIterator + Clone, [src]
T: Copy,
I: IntoIterator<Item = &'a usize>,
I::IntoIter: ExactSizeIterator + Clone,
fn elemul(&self, m: &Self) -> Matrix<T> where
T: Copy + Mul<T, Output = T>, [src]
T: Copy + Mul<T, Output = T>,
fn elediv(&self, m: &Self) -> Matrix<T> where
T: Copy + Div<T, Output = T>, [src]
T: Copy + Div<T, Output = T>,
fn select(&self, rows: &[usize], cols: &[usize]) -> Matrix<T> where
T: Copy, [src]
T: Copy,
fn hcat<S>(&self, m: &S) -> Matrix<T> where
T: Copy,
S: BaseMatrix<T>, [src]
T: Copy,
S: BaseMatrix<T>,
fn vcat<S>(&self, m: &S) -> Matrix<T> where
T: Copy,
S: BaseMatrix<T>, [src]
T: Copy,
S: BaseMatrix<T>,
ⓘImportant traits for Diagonal<'a, T, M>fn diag(&self) -> Diagonal<T, Self>[src]
ⓘImportant traits for Diagonal<'a, T, M>
fn transpose(&self) -> Matrix<T> where
T: Copy, [src]
T: Copy,
fn is_diag(&self) -> bool where
T: Zero + PartialEq, [src]
T: Zero + PartialEq,
fn solve_u_triangular(&self, y: Vector<T>) -> Result<Vector<T>, Error> where
T: Any + Float, [src]
T: Any + Float,
fn solve_l_triangular(&self, y: Vector<T>) -> Result<Vector<T>, Error> where
T: Any + Float, [src]
T: Any + Float,
fn split_at(&self, mid: usize, axis: Axes) -> (MatrixSlice<T>, MatrixSlice<T>)[src]
fn sub_slice<'a>(
&self,
start: [usize; 2],
rows: usize,
cols: usize
) -> MatrixSlice<'a, T> where
T: 'a, [src]
&self,
start: [usize; 2],
rows: usize,
cols: usize
) -> MatrixSlice<'a, T> where
T: 'a,
impl<'a, T: Clone + 'a> Clone for Column<'a, T>[src]
impl<'a, T: Clone> From<Column<'a, T>> for Vector<T>[src]
impl<'a, T: Copy + 'a> Copy for Column<'a, T>[src]
impl<'a, T: 'a> Deref for Column<'a, T>[src]
type Target = MatrixSlice<'a, T>
The resulting type after dereferencing.
fn deref(&self) -> &MatrixSlice<'a, T>[src]
impl<'a, T> Index<usize> for Column<'a, T>[src]
impl<'a, T: Debug + 'a> Debug for Column<'a, T>[src]
Auto Trait Implementations
impl<'a, T> !Sync for Column<'a, T>
impl<'a, T> !Send for Column<'a, T>
impl<'a, T> Unpin for Column<'a, T>
impl<'a, T> UnwindSafe for Column<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> RefUnwindSafe for Column<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,