[SciPy-Dev] scipy.io.loadmat and matvec multiply

Pauli Virtanen pav at iki.fi
Sat Aug 26 02:39:05 EDT 2017


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


More information about the SciPy-Dev mailing list