MatrixBuilder

class MatrixBuilder<T : Any, out A : Ring<T>>(linearSpace: LinearSpace<T, A>, rows: Int, columns: Int)

Functions

Link copied to clipboard
operator fun invoke(vararg elements: T): Matrix<T>

Properties

Link copied to clipboard
val columns: Int
Link copied to clipboard
val linearSpace: LinearSpace<T, A>
Link copied to clipboard
val rows: Int

Extensions

Link copied to clipboard
fun <T : Any, A : Ring<T>> MatrixBuilder<T, A>.symmetric(builder: (i: Int, j: Int) -> T): Matrix<T>

Naive implementation of a symmetric matrix builder, that adds a SymmetricMatrixFeature tag. The resulting matrix contains full size^2 number of elements, but caches elements during calls to save builder calls. builder is always called in the upper triangle region meaning that i <= j

Link copied to clipboard
fun <T : Any> MatrixBuilder<T, *>.virtual(generator: (i: Int, j: Int) -> T): VirtualMatrix<T>

Sources

Link copied to clipboard