koblas

gemv

fun SparseMatrix.gemv(x: DoubleArray, transpose: Boolean = false): DoubleArray(source)

this · x, or thisᵀ · x when transpose, with the active backend (koblas).

An extension rather than a member of SparseMatrix, matching DenseMatrix.matMul: the containers are storage, and which backend multiplies them is a separate concern that would otherwise make the root package depend on this one.

lu

fun SparseMatrix.lu(equilibrate: Boolean = false, dropTolerance: Double = NO_DROP): SparseFactorization(source)

Factorize this sparse matrix with the active backend (koblas) — the sparse counterpart of DenseMatrix.lu(), carrying the same name for the same operation on the other storage.

trsv

fun SparseMatrix.trsv(x: DoubleArray, lower: Boolean, transpose: Boolean = false)(source)

Solve op(T) · x = b in place against this matrix's lower or upper triangle, with the active backend (koblas) — the sparse counterpart of the dense trsv free function. See SparseBlas.trsv.