koblas

F64SparseFactorization

A factorization held for reuse against further right-hand sides.

Inheritors

BasicluFactorization
KluFactorization
UmfpackFactorization

Properties

failedAt

abstract val failedAt: Int(source)

The pivot position that had no numerically acceptable candidate, or NOT_SINGULAR when the factorization succeeded.

n

abstract val n: Int(source)

The dimension of the factored matrix.

nnz

abstract val nnz: Int(source)

Nonzeros in the factors, the fill. Zero for a singular factorization, which has none.

rcond

abstract val rcond: Double(source)

A cheap pivot-quality estimate: min(abs(U(k, k))) / max(abs(U(k, k))). A small value warns that the factorization may be inaccurate; it is not a reciprocal condition-number estimate.

singular

Whether the factorization failed for want of a numerically acceptable pivot. Solving against one throws com.eignex.koblas.SingularMatrix rather than answering with infinities.

Functions

solve

open fun solve(b: DoubleArray, transpose: Boolean = false): DoubleArray(source)

Solve B x = b, or Bᵀ x = b when transpose, into a fresh result.

solveInto

abstract fun solveInto(b: DoubleArray, out: DoubleArray, transpose: Boolean = false, workspace: Workspace? = null): DoubleArray(source)

Solve B x = b, or Bᵀ x = b when transpose, into out, which is returned. Allocates nothing when given a workspace. out may be b.