MatrixBuilder

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

Constructors

Link copied to clipboard
constructor(linearSpace: LinearSpace<T, A>, rows: Int, columns: Int)

Functions

Link copied to clipboard
operator fun invoke(vararg elements: T): Matrix<T>
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>

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rows: Int