Trait ndarray_linalg::lapack_traits::solve::Solve_ [−][src]
pub trait Solve_: AssociatedReal + Sized { unsafe fn lu(_: MatrixLayout, a: &mut [Self]) -> Result<Pivot>; unsafe fn inv(_: MatrixLayout, a: &mut [Self], _: &Pivot) -> Result<()>; unsafe fn rcond(
_: MatrixLayout,
a: &[Self],
anorm: Self::Real
) -> Result<Self::Real>; unsafe fn solve(
_: MatrixLayout,
_: Transpose,
a: &[Self],
_: &Pivot,
b: &mut [Self]
) -> Result<()>; }
Wraps *getrf
, *getri
, and *getrs
Required Methods
unsafe fn lu(_: MatrixLayout, a: &mut [Self]) -> Result<Pivot>
Computes the LU factorization of a general m x n
matrix a
using
partial pivoting with row interchanges.
If the result matches Err(LinalgError::Lapack(LapackError { return_code )) if return_code > 0
, then U[(return_code-1, return_code-1)]
is exactly zero. The factorization has been completed,
but the factor U
is exactly singular, and division by zero will occur
if it is used to solve a system of equations.
unsafe fn inv(_: MatrixLayout, a: &mut [Self], _: &Pivot) -> Result<()>
unsafe fn rcond(
_: MatrixLayout,
a: &[Self],
anorm: Self::Real
) -> Result<Self::Real>
_: MatrixLayout,
a: &[Self],
anorm: Self::Real
) -> Result<Self::Real>
Estimates the the reciprocal of the condition number of the matrix in 1-norm.
anorm
should be the 1-norm of the matrix a
.
unsafe fn solve(
_: MatrixLayout,
_: Transpose,
a: &[Self],
_: &Pivot,
b: &mut [Self]
) -> Result<()>
_: MatrixLayout,
_: Transpose,
a: &[Self],
_: &Pivot,
b: &mut [Self]
) -> Result<()>
Implementations on Foreign Types
impl Solve_ for f64
[src]
impl Solve_ for f64
unsafe fn lu(l: MatrixLayout, a: &mut [Self]) -> Result<Pivot>
[src]
unsafe fn lu(l: MatrixLayout, a: &mut [Self]) -> Result<Pivot>
unsafe fn inv(l: MatrixLayout, a: &mut [Self], ipiv: &Pivot) -> Result<()>
[src]
unsafe fn inv(l: MatrixLayout, a: &mut [Self], ipiv: &Pivot) -> Result<()>
unsafe fn rcond(
l: MatrixLayout,
a: &[Self],
anorm: Self::Real
) -> Result<Self::Real>
[src]
unsafe fn rcond(
l: MatrixLayout,
a: &[Self],
anorm: Self::Real
) -> Result<Self::Real>
unsafe fn solve(
l: MatrixLayout,
t: Transpose,
a: &[Self],
ipiv: &Pivot,
b: &mut [Self]
) -> Result<()>
[src]
unsafe fn solve(
l: MatrixLayout,
t: Transpose,
a: &[Self],
ipiv: &Pivot,
b: &mut [Self]
) -> Result<()>
impl Solve_ for f32
[src]
impl Solve_ for f32
unsafe fn lu(l: MatrixLayout, a: &mut [Self]) -> Result<Pivot>
[src]
unsafe fn lu(l: MatrixLayout, a: &mut [Self]) -> Result<Pivot>
unsafe fn inv(l: MatrixLayout, a: &mut [Self], ipiv: &Pivot) -> Result<()>
[src]
unsafe fn inv(l: MatrixLayout, a: &mut [Self], ipiv: &Pivot) -> Result<()>
unsafe fn rcond(
l: MatrixLayout,
a: &[Self],
anorm: Self::Real
) -> Result<Self::Real>
[src]
unsafe fn rcond(
l: MatrixLayout,
a: &[Self],
anorm: Self::Real
) -> Result<Self::Real>
unsafe fn solve(
l: MatrixLayout,
t: Transpose,
a: &[Self],
ipiv: &Pivot,
b: &mut [Self]
) -> Result<()>
[src]
unsafe fn solve(
l: MatrixLayout,
t: Transpose,
a: &[Self],
ipiv: &Pivot,
b: &mut [Self]
) -> Result<()>