Trait ArrayLinalgSolvingInvertingProducts

Source
pub trait ArrayLinalgSolvingInvertingProducts<N: NumericOps>
where Self: Sized + Clone,
{ // Required method fn solve(&self, other: &Array<N>) -> Result<Array<N>, ArrayError>; }
Expand description

ArrayTrait - Array Linalg Solving equations and Inverting matrices functions

Required Methods§

Source

fn solve(&self, other: &Array<N>) -> Result<Array<N>, ArrayError>

Solve a linear matrix equation, or system of linear scalar equations

§Arguments
  • other - other array to perform operations with
§Examples
use arr_rs::prelude::*;

let arr_1 = Array::new(vec![2., 1., 1., 3.], vec![2, 2]).unwrap();
let arr_2 = Array::new(vec![5., 8., 3., 6.], vec![2, 2]).unwrap();
assert_eq!(Array::new(vec![2.4, 3.6, 0.2, 0.8], vec![2, 2]), arr_1.solve(&arr_2));
§Errors

may returns ArrayError

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<N: NumericOps> ArrayLinalgSolvingInvertingProducts<N> for Result<Array<N>, ArrayError>

Source§

fn solve(&self, other: &Array<N>) -> Self

Implementors§