Home > @josh-brown/vector > SparseMatrix > getDiagonal
Returns a vector containing the elements of the main diagonal of the matrix
Signature:
getDiagonal(): Vector<S>;Returns:
Vector<S>
The vector of diagonal entries
Home > @josh-brown/vector > SparseMatrix > getDiagonal
Returns a vector containing the elements of the main diagonal of the matrix
Signature:
getDiagonal(): Vector<S>;Returns:
Vector<S>
The vector of diagonal entries