anderkve / FYS3150

https://anderkve.github.io/FYS3150
26 stars 14 forks source link

Error when I try to export my arma::mat and arma::vec into binary files for plotting #15

Closed dondondooooon closed 3 years ago

dondondooooon commented 3 years ago

I wrote

arma_eigvec.save('armavec.bin');

where arma_eigvec is type arma::mat.

Screen Shot 2021-09-27 at 21 03 50
anderkve commented 3 years ago

Try using double quotes (") instead of single quotes ('). In Python it doesn't matter, but in C++ it does. In C++ a single quote implies a character constant (https://www.tutorialspoint.com/What-are-Cplusplus-Character-Constants) -- see the warning message just before the error message.