问题
Hi I just recently discovered the armadillo library for C++ and I quite like it. I am building an application after prototyping it in MATLAB so that I can execute it much faster. The problem I am facing is that when I try to load a matrix from a .mat
file as follows:
A.load("A.mat",raw_ascii);
//raw_ascii because I can port data to MATLAB as well.
it takes about 10 seconds. I was wondering if there was a faster way of doing it in armadillo or C++ in general.
Any thoughts are much appreciated, thanks.
edit 1 - the file I am trying to read is about 35MB.
回答1:
hdf5_binary should work faster. Matlab supports this format
来源:https://stackoverflow.com/questions/15581131/faster-way-to-read-a-data-file-using-armadilo-in-c