pub struct NumericMatrix { /* private fields */ }Implementations§
Source§impl NumericMatrix
impl NumericMatrix
Source§impl NumericMatrix
impl NumericMatrix
pub fn try_from_expression(expr: &Expression) -> Option<Self>
pub fn try_from_matrix(matrix: &Matrix) -> Option<Self>
pub fn to_expression(&self) -> Expression
pub fn to_matrix(&self) -> Matrix
pub fn can_convert(expr: &Expression) -> bool
pub fn can_convert_matrix(matrix: &Matrix) -> bool
Source§impl NumericMatrix
impl NumericMatrix
pub fn lu_decomposition(&self) -> Result<LUResult, MathError>
pub fn determinant(&self) -> Result<f64, MathError>
Source§impl NumericMatrix
impl NumericMatrix
Source§impl NumericMatrix
impl NumericMatrix
pub fn zeros(rows: usize, cols: usize) -> Result<Self, MathError>
pub fn identity(n: usize) -> Result<Self, MathError>
pub fn from_flat( rows: usize, cols: usize, data: Vec<f64>, ) -> Result<Self, MathError>
pub fn from_fn<F>(rows: usize, cols: usize, f: F) -> Result<Self, MathError>
pub fn dimensions(&self) -> (usize, usize)
pub fn get(&self, row: usize, col: usize) -> Result<f64, MathError>
pub fn set( &mut self, row: usize, col: usize, value: f64, ) -> Result<(), MathError>
pub fn is_square(&self) -> bool
pub fn is_symmetric(&self) -> bool
pub fn transpose(&self) -> Self
Trait Implementations§
Source§impl Add for &NumericMatrix
impl Add for &NumericMatrix
Source§impl Add for NumericMatrix
impl Add for NumericMatrix
Source§impl Clone for NumericMatrix
impl Clone for NumericMatrix
Source§fn clone(&self) -> NumericMatrix
fn clone(&self) -> NumericMatrix
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NumericMatrix
impl Debug for NumericMatrix
Source§impl Display for NumericMatrix
impl Display for NumericMatrix
Source§impl Mul<&NumericMatrix> for f64
impl Mul<&NumericMatrix> for f64
Source§type Output = NumericMatrix
type Output = NumericMatrix
The resulting type after applying the
* operator.Source§impl Mul<NumericMatrix> for f64
impl Mul<NumericMatrix> for f64
Source§type Output = NumericMatrix
type Output = NumericMatrix
The resulting type after applying the
* operator.Source§impl Mul<f64> for &NumericMatrix
impl Mul<f64> for &NumericMatrix
Source§impl Mul<f64> for NumericMatrix
impl Mul<f64> for NumericMatrix
Source§impl Neg for &NumericMatrix
impl Neg for &NumericMatrix
Source§impl Neg for NumericMatrix
impl Neg for NumericMatrix
Source§impl PartialEq for NumericMatrix
impl PartialEq for NumericMatrix
Source§impl Sub for &NumericMatrix
impl Sub for &NumericMatrix
Source§impl Sub for NumericMatrix
impl Sub for NumericMatrix
impl StructuralPartialEq for NumericMatrix
Auto Trait Implementations§
impl Freeze for NumericMatrix
impl RefUnwindSafe for NumericMatrix
impl Send for NumericMatrix
impl Sync for NumericMatrix
impl Unpin for NumericMatrix
impl UnwindSafe for NumericMatrix
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more