You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #94, it would be useful to have functions for diag (for turning a vector into a diagonal matrix) and diag^{-1} (for extracting the diagonal elements of a matrix).
These could be called LAGraph_diag(GrB_Matrix* A, GrB_Vector d) and LAGraph_inv_diag(GrB_Vector &d, GrB_Matrix A, boolean diagonal_only) (diagonal_only denoting whether matrix A only has diagonal elements, which makes the extraction trivial).
The text was updated successfully, but these errors were encountered:
One of these is now in the spec (GrB_Matrix_diag, to build a matrix from a diagonal). The opposite, GxB_Vector_diag, to extract a diagonal from a matrix, is in SuiteSparse as a GxB method, but is not in the spec.
Related to #94, it would be useful to have functions for
diag
(for turning a vector into a diagonal matrix) anddiag^{-1}
(for extracting the diagonal elements of a matrix).These could be called
LAGraph_diag(GrB_Matrix* A, GrB_Vector d)
andLAGraph_inv_diag(GrB_Vector &d, GrB_Matrix A, boolean diagonal_only)
(diagonal_only
denoting whether matrixA
only has diagonal elements, which makes the extraction trivial).The text was updated successfully, but these errors were encountered: