Update spmatfuncs.pyx
Update spmatfuncs.c
Merge pull request #61 from Vutshi/patch-4

Speed improvement for herm=1