Struct algebloat::matrix::Matrix
[−]
[src]
pub struct Matrix { /* fields omitted */ }
Methods
impl Matrix
[src]
fn new(data: &[&[f64]]) -> Matrix
fn eye(size: usize) -> Matrix
fn zeros(nrow: usize, ncol: usize) -> Matrix
fn ones(nrow: usize, ncol: usize) -> Matrix
fn from_elem(nrow: usize, ncol: usize, elem: f64) -> Matrix
fn from_fn<F: FnMut(usize, usize) -> f64>(
nrow: usize,
ncol: usize,
cb: F
) -> Matrix
nrow: usize,
ncol: usize,
cb: F
) -> Matrix
fn from_iter<T: Iterator<Item = f64>>(nrow: usize, ncol: usize, t: T) -> Matrix
Trait Implementations
impl<'l> MatrixRawGet for &'l Matrix
[src]
impl<'l> MatrixRawSet for &'l Matrix
[src]
impl<'l> MatrixShape for &'l Matrix
[src]
fn nrow(&self) -> usize
fn ncol(&self) -> usize
fn size(&self) -> (usize, usize)
fn len(&self) -> usize
impl<'l> SameShape for &'l Matrix
[src]
fn same_shape(&self, nrow: usize, ncol: usize) -> bool
impl MatrixRawGet for Matrix
[src]
impl MatrixRawSet for Matrix
[src]
impl MatrixShape for Matrix
[src]
fn nrow(&self) -> usize
fn ncol(&self) -> usize
fn size(&self) -> (usize, usize)
fn len(&self) -> usize
impl Display for Matrix
[src]
impl<'l, RHS: MatrixRawGet + Clone + SameShape> Add<RHS> for &'l Matrix
[src]
type Output = MatrixBinOp<&'l Matrix, RHS, OpAdd>
The resulting type after applying the +
operator
fn add(self, rhs: RHS) -> MatrixBinOp<&'l Matrix, RHS, OpAdd>
The method for the +
operator
impl<'l, RHS: MatrixRawGet + Clone + SameShape> Sub<RHS> for &'l Matrix
[src]
type Output = MatrixBinOp<&'l Matrix, RHS, OpSub>
The resulting type after applying the -
operator
fn sub(self, rhs: RHS) -> MatrixBinOp<&'l Matrix, RHS, OpSub>
The method for the -
operator
impl<'l, RHS: MatrixRawGet + Clone + SameShape> Mul<RHS> for &'l Matrix
[src]
type Output = MatrixBinOp<&'l Matrix, RHS, OpMul>
The resulting type after applying the *
operator
fn mul(self, rhs: RHS) -> MatrixBinOp<&'l Matrix, RHS, OpMul>
The method for the *
operator
impl<'l, RHS: MatrixRawGet + Clone + SameShape> Div<RHS> for &'l Matrix
[src]
type Output = MatrixBinOp<&'l Matrix, RHS, OpDiv>
The resulting type after applying the /
operator
fn div(self, rhs: RHS) -> MatrixBinOp<&'l Matrix, RHS, OpDiv>
The method for the /
operator
impl<'l> Neg for &'l Matrix
[src]
type Output = MatrixUnOp<&'l Matrix, OpNeg>
The resulting type after applying the -
operator
fn neg(self) -> MatrixUnOp<&'l Matrix, OpNeg>
The method for the unary -
operator