Trait ndarray_linalg::lapack_traits::solve::Solve_
[−]
[src]
pub trait Solve_: Sized { unsafe fn lu(_: MatrixLayout, a: &mut [Self]) -> Result<Pivot>; unsafe fn inv(_: MatrixLayout, a: &mut [Self], _: &Pivot) -> Result<()>; 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 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]
unsafe fn lu(l: MatrixLayout, a: &mut [Self]) -> Result<Pivot>
[src]
unsafe fn inv(l: MatrixLayout, a: &mut [Self], ipiv: &Pivot) -> Result<()>
[src]
unsafe fn solve(
l: MatrixLayout,
t: Transpose,
a: &[Self],
ipiv: &Pivot,
b: &mut [Self]
) -> Result<()>
[src]
l: MatrixLayout,
t: Transpose,
a: &[Self],
ipiv: &Pivot,
b: &mut [Self]
) -> Result<()>
impl Solve_ for f32
[src]
unsafe fn lu(l: MatrixLayout, a: &mut [Self]) -> Result<Pivot>
[src]
unsafe fn inv(l: MatrixLayout, a: &mut [Self], ipiv: &Pivot) -> Result<()>
[src]
unsafe fn solve(
l: MatrixLayout,
t: Transpose,
a: &[Self],
ipiv: &Pivot,
b: &mut [Self]
) -> Result<()>
[src]
l: MatrixLayout,
t: Transpose,
a: &[Self],
ipiv: &Pivot,
b: &mut [Self]
) -> Result<()>