Aug. 26, 2017
6:39 a.m.
pe, 2017-08-25 kello 23:08 -0700, Jonathan Taylor kirjoitti:
I've got a largeish array that I have saved in a .MAT file that I need to use for matvec multiply several times.
It seems that if I copy the array before running the matvec I get a significant speedup. Is this known?
If you do the copy in a way such that the format of the matrix is different (e.g. different sparse matrix format), then the speed can differ. Check print(type(original_matrix), type(copied_matrix)). -- Pauli Virtanen