SparseInit

abstract class SparseInit<T>

This class provides access to a single function initialising a sparse matrix by returing either a value, or marking it sparse. It is used as receiver of the lambda, that is expected to return the result of either invoking value or sparse.

Properties

Link copied to clipboard

a value that represents a sparse cell.

Functions

Link copied to clipboard
inline fun <I> SparseMatrix.SparseValue<I>.map(transform: (I) -> T): SparseMatrix.SparseValue<T>
Link copied to clipboard
abstract fun value(v: T): SparseMatrix.SparseValue<T>

Create a wrapper representing v as a value.