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
Hi, I want to create symmetric sparse matrix by SymSparseMat class so I check the Matrices.hpp for arguments descriptions.
int_t nr, /**< Number of rows. */
int_t nc, /**< Number of columns. */
sparse_int_t* r, /**< Row indices (length). */
sparse_int_t* c, /**< Indices to first entry of columns (nCols+1). */
real_t* v /**< Vector of entries (length). */
I don't understand these three agruments: sparse_int_t* rsparse_int_t* creal_t* v.
Before creating this issue, I have saw the qrecipe.cpp 、 qrecipe_data.hpp but I still can not understand whar the arguments mean. I also googled for answers about this question but I couldn't find simliar questions.
Could you please give me a simple example(like creating a 3*3 symmetric sparse matrix ) to explain what these three arguments mean?
Thanks a lot in advance!
The text was updated successfully, but these errors were encountered:
So basically, you go through your matrix column-wise, then add each non-zero value to v and each row of that entry to r, and in c you save the position of the first element in v for each column, plus one past the last element (equaling the total number of entries) - length of c is (number of columns + 1).
Hi, I want to create symmetric sparse matrix by SymSparseMat class so I check the Matrices.hpp for arguments descriptions.
I don't understand these three agruments:
sparse_int_t* r
sparse_int_t* c
real_t* v
.Before creating this issue, I have saw the
qrecipe.cpp
、qrecipe_data.hpp
but I still can not understand whar the arguments mean. I also googled for answers about this question but I couldn't find simliar questions.Could you please give me a simple example(like creating a 3*3 symmetric sparse matrix ) to explain what these three arguments mean?
Thanks a lot in advance!
The text was updated successfully, but these errors were encountered: