Trait ndarray_linalg::solveh::SolveH
[−]
[src]
pub trait SolveH<A: Scalar> { fn solveh_mut<'a, S: DataMut<Elem = A>>(
&self,
_: &'a mut ArrayBase<S, Ix1>
) -> Result<&'a mut ArrayBase<S, Ix1>>; fn solveh<S: Data<Elem = A>>(
&self,
b: &ArrayBase<S, Ix1>
) -> Result<Array1<A>> { ... } fn solveh_into<S: DataMut<Elem = A>>(
&self,
b: ArrayBase<S, Ix1>
) -> Result<ArrayBase<S, Ix1>> { ... } }
An interface for solving systems of Hermitian (or real symmetric) linear equations.
If you plan to solve many equations with the same Hermitian (or real
symmetric) coefficient matrix A
but different b
vectors, it's faster to
factor the A
matrix once using the FactorizeH
trait, and then solve
using the FactorizedH
struct.
Required Methods
fn solveh_mut<'a, S: DataMut<Elem = A>>(
&self,
_: &'a mut ArrayBase<S, Ix1>
) -> Result<&'a mut ArrayBase<S, Ix1>>
&self,
_: &'a mut ArrayBase<S, Ix1>
) -> Result<&'a mut ArrayBase<S, Ix1>>
Solves a system of linear equations A * x = b
with Hermitian (or real
symmetric) matrix A
, where A
is self
, b
is the argument, and
x
is the successful result. The value of x
is also assigned to the
argument.
Provided Methods
fn solveh<S: Data<Elem = A>>(&self, b: &ArrayBase<S, Ix1>) -> Result<Array1<A>>
Solves a system of linear equations A * x = b
with Hermitian (or real
symmetric) matrix A
, where A
is self
, b
is the argument, and
x
is the successful result.
fn solveh_into<S: DataMut<Elem = A>>(
&self,
b: ArrayBase<S, Ix1>
) -> Result<ArrayBase<S, Ix1>>
&self,
b: ArrayBase<S, Ix1>
) -> Result<ArrayBase<S, Ix1>>
Solves a system of linear equations A * x = b
with Hermitian (or real
symmetric) matrix A
, where A
is self
, b
is the argument, and
x
is the successful result.
Implementations on Foreign Types
impl<A, S> SolveH<A> for ArrayBase<S, Ix2> where
A: Scalar,
S: Data<Elem = A>,
[src]
A: Scalar,
S: Data<Elem = A>,
fn solveh_mut<'a, Sb>(
&self,
rhs: &'a mut ArrayBase<Sb, Ix1>
) -> Result<&'a mut ArrayBase<Sb, Ix1>> where
Sb: DataMut<Elem = A>,
[src]
&self,
rhs: &'a mut ArrayBase<Sb, Ix1>
) -> Result<&'a mut ArrayBase<Sb, Ix1>> where
Sb: DataMut<Elem = A>,
fn solveh<S: Data<Elem = A>>(&self, b: &ArrayBase<S, Ix1>) -> Result<Array1<A>>
[src]
fn solveh_into<S: DataMut<Elem = A>>(
&self,
b: ArrayBase<S, Ix1>
) -> Result<ArrayBase<S, Ix1>>
[src]
&self,
b: ArrayBase<S, Ix1>
) -> Result<ArrayBase<S, Ix1>>
Implementors
impl<A, S> SolveH<A> for FactorizedH<S> where
A: Scalar,
S: Data<Elem = A>,