pub struct MatrixUtils;Expand description
Matrix operations for partial derivatives
Implementations§
Source§impl MatrixUtils
impl MatrixUtils
Sourcepub fn determinant(matrix: &[Vec<Expression>]) -> Expression
pub fn determinant(matrix: &[Vec<Expression>]) -> Expression
Compute matrix determinant with optimized algorithms
§Examples
use mathhook_core::{Expression, calculus::derivatives::MatrixUtils};
let matrix = vec![
vec![Expression::integer(1), Expression::integer(2)],
vec![Expression::integer(3), Expression::integer(4)],
];
let det = MatrixUtils::determinant(&matrix);Auto Trait Implementations§
impl Freeze for MatrixUtils
impl RefUnwindSafe for MatrixUtils
impl Send for MatrixUtils
impl Sync for MatrixUtils
impl Unpin for MatrixUtils
impl UnwindSafe for MatrixUtils
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> 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