Module scid.matrix

This module contains the MatrixView class as well as some functions related to it.

Functions

NameDescription
copy(m)A convenience function that creates a copy of the input matrix. Memory for the copy is allocated using the GC.
matrix(rows, cols)A convenience function that allocates memory for a matrix (using the GC), optionally sets the values of the matrix elements, and returns a MatrixView of the allocated memory.

Structs

NameDescription
MatrixViewA matrix-like view of the contents of an array.

Enums

NameDescription
StorageVarious matrix representations.
TriangleIn packed storage (triangular, symmetric, and Hermitian matrices), one can choose to store either the upper or lower triangle.

Templates

NameDescription
isMatrixViewEvaluates to true if the given type is an instantiation of MatrixView. Optionally test the element type and/or storage scheme.