public interface LUDecomposition extends AutoCloseable
try (LUDecomposition decomposition = m.decomposeLU()) { decomposition.solve(...) }
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
solve(DenseMatrix b)
Solve A * x = b where b is a dense matrix.
|
void |
solve(double[] b)
Solve A * x = b where b is a column vector.
|
void |
update()
Method to call when matrix has been updated to refresh LU decomposition so that new data can be taken into
account in next
solve(double[]) or solve(DenseMatrix) . |
void update()
solve(double[])
or solve(DenseMatrix)
.void solve(double[] b)
b
- a column vectorvoid solve(DenseMatrix b)
b
- a matrixvoid close()
close
in interface AutoCloseable
Copyright © 2020. All rights reserved.