349
edits
(Created page with " {{Code|C++ function to load a matrix from an ASCII file in Octave native format|<syntaxhighlight lang="C" style="font-size:13px"> #include <octave_file_io.h> #include <oct...") |
No edit summary |
||
Line 41: | Line 41: | ||
*data = (double*) malloc (M.numel () * sizeof (double)); | *data = (double*) malloc (M.numel () * sizeof (double)); | ||
*numel = M.numel (); | *numel = M.numel (); | ||
memcpy (*data, M.fortran_vec (), *numel * sizeof (double)); | memcpy (*data, M.fortran_vec (), *numel * sizeof (double)); | ||
edits