*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit e2e77c4d authored by Carl-Martin Pfeiler's avatar Carl-Martin Pfeiler
Browse files

minor adj: safe ng->scipy if mat not regular

parent 989ed105
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ def ScipySparseFromNgMatrix(a):
import scipy.sparse as sp
rows, cols, vals = a.mat.COO()
A = sp.csr_matrix( (vals.NumPy(), (rows, cols) ) )
A = sp.csr_matrix( (vals.NumPy(), (rows, cols) ), shape=(a.mat.height, a.mat.width) )
return A
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment