koblas

sparse.host

Types

F64SparseBackends
Link copied to clipboard
class F64SparseBackends(umfpackConfig: UmfpackConfig = UmfpackConfig(), kluConfig: KluConfig = KluConfig(), basicluConfig: BasicluConfig = BasicluConfig())

The independently configured sparse LU backends this native host can load from its host libraries.

class F64SparseBackends(kluConfig: KluConfig = KluConfig(), umfpackConfig: UmfpackConfig = UmfpackConfig(), basicluConfig: BasicluConfig = BasicluConfig())

The independently configured sparse LU backends this JVM can load from its host libraries.

Link copied to clipboard

Shared routing for a host sparse LU binding, the counterpart of the dense host adapters.

Functions

Link copied to clipboard

Undoes the scaling equilibrationScale applied, in place in x. The factors are of E·B, so a forward solve scales its right-hand side going in and a transposed solve scales its result coming out.

Link copied to clipboard
fun equilibrationScale(rows: Int, rowIdx: IntArray, values: DoubleArray): DoubleArray

The per-row factors the portable factorization equilibrates with: a power of two near 1/max|row|, so scaling is exact in binary floating point and a host binding that scales for itself agrees with the portable one entry for entry.

Link copied to clipboard

values with every entry multiplied by its row's factor from scale, as a fresh array.