-
Notifications
You must be signed in to change notification settings - Fork 391
L_ck
Joris Gillis edited this page Sep 16, 2022
·
2 revisions
Transpose the matrix and get the reordering of the non-zero entries. transpose(self, bool invert_mapping) -> (Sparsity , [int] OUTPUT)
mapping: the non-zeros of the original matrix for each non-zero of the new
matrix
Extra doc: https://github.com/casadi/casadi/wiki/L_ck
Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity.hpp#L564
Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/sparsity.cpp#L366-L368
To edit, see writing tips.