[−][src]Trait ndarray_linalg::least_squares::LeastSquaresSvdInPlace
Solve least squares for mutable references, overwriting the input fields in the process
Required methods
fn least_squares_in_place(
&mut self,
rhs: &mut ArrayBase<D, I>
) -> Result<LeastSquaresResult<E, I>>
&mut self,
rhs: &mut ArrayBase<D, I>
) -> Result<LeastSquaresResult<E, I>>
Solve a least squares problem of the form Ax = rhs
by calling A.least_squares(&mut rhs), overwriting both A
and rhs. This uses the memory location of A and
rhs, which avoids some extra memory allocations.
A and rhs must have the same layout, i.e. they must
be both either row- or column-major format, otherwise a
IncompatibleShape error is raised.
Implementations on Foreign Types
impl<E, D> LeastSquaresSvdInPlace<D, E, Dim<[usize; 1]>> for ArrayBase<D, Ix2> where
E: Scalar + Lapack + LeastSquaresSvdDivideConquer_,
D: DataMut<Elem = E>, [src]
E: Scalar + Lapack + LeastSquaresSvdDivideConquer_,
D: DataMut<Elem = E>,
Solve least squares for mutable references and a vector as a right-hand side. Both values are overwritten in the call.
E is one of f32, f64, c32, c64. D can be any
valid representation for ArrayBase.
fn least_squares_in_place(
&mut self,
rhs: &mut ArrayBase<D, Ix1>
) -> Result<LeastSquaresResult<E, Ix1>>[src]
&mut self,
rhs: &mut ArrayBase<D, Ix1>
) -> Result<LeastSquaresResult<E, Ix1>>
Solve a least squares problem of the form Ax = rhs
by calling A.least_squares(rhs), where rhs is a
vector. A and rhs are overwritten in the call.
A and rhs must have the same layout, i.e. they must
be both either row- or column-major format, otherwise a
IncompatibleShape error is raised.
impl<E, D> LeastSquaresSvdInPlace<D, E, Dim<[usize; 2]>> for ArrayBase<D, Ix2> where
E: Scalar + Lapack + LeastSquaresSvdDivideConquer_,
D: DataMut<Elem = E>, [src]
E: Scalar + Lapack + LeastSquaresSvdDivideConquer_,
D: DataMut<Elem = E>,
Solve least squares for mutable references and a matrix as a right-hand side. Both values are overwritten in the call.
E is one of f32, f64, c32, c64. D can be any
valid representation for ArrayBase.
fn least_squares_in_place(
&mut self,
rhs: &mut ArrayBase<D, Ix2>
) -> Result<LeastSquaresResult<E, Ix2>>[src]
&mut self,
rhs: &mut ArrayBase<D, Ix2>
) -> Result<LeastSquaresResult<E, Ix2>>
Solve a least squares problem of the form Ax = rhs
by calling A.least_squares(rhs), where rhs is a
matrix. A and rhs are overwritten in the call.
A and rhs must have the same layout, i.e. they must
be both either row- or column-major format, otherwise a
IncompatibleShape error is raised.