struct LA::Utils::LUMatrix(T)
- LA::Utils::LUMatrix(T)
- Struct
- Value
- Object
Overview
Struct holding lu-decomposition of a matrix
Can be used to solve linear equations
Defined in:
linalg/lu.crConstructors
Instance Method Summary
-
#a : Matrix(T)
L and U matrices packed in one matrix
-
#ipiv : Slice(Int32)
indices of permutations
-
#size
Returns size of a system
-
#solve(b, transpose = LUTranspose::None, *, overwrite_b = false)
Solves
A*x = b
equations system with given b and returnsx
Constructor Detail
Instance Method Detail
Solves A*x = b
equations system with given b and returns x
transpose
allows to solve A.t * x = b
and A.conjt * x = b
systems instead
if overwrite_b is true, b will be overriden in process of calculation
Uses getrs
LAPACK routine