[Solved] How much memory is required to store a matrix using the armadillo linear algebra package?
The mat type stores an array of doubles, so to get the size of the array as bytes: A.n_elem * sizeof(double) The total amount of memory used by A is sizeof(A) + (A.n_elem * sizeof(double)). solved How much memory is required to store a matrix using the armadillo linear algebra package?