Armadillo c++: Is there a specific way for creating efficiently triangular or symmetric matrix -


i using armadillo symmetric , triangular matrices. wanted efficient in terms of memory storage. however, seems there no other way create new mat , fill zeros(for triangular) or duplicates(for symmetric) lower/upper part of matrix.

is there more efficient way of using triangular/symmetric matrices using armadillo?

thanks, antoine

there no specific support triangular or banded matrices in armadillo. however, since version 3.4 support sparse matrices has gradually been added. depending on armadillo functions need, , sparsity of matrix, might gain using spmat<type> implements compressed sparse column (csc) format. each nonzero value in matrix csc format stores row index along value not save memory triangular matrix. banded diagonal matrix should consume less memory.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -