symmetric

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

Sources

common source
Link copied to clipboard