Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3c847b85 authored by hhakim's avatar hhakim
Browse files

Fix BSR data dimension sizes order in pyx Faust ctor.

parent 108c5d75
Branches
Tags
No related merge requests found
......@@ -54,8 +54,8 @@ cdef class FaustCoreGen@TYPE_NAME@@PROC@:
bnnz = int(factor.nnz/factor.blocksize[0]/factor.blocksize[1])
# reshape data with block transposition (because scipy is
# in row-major order and FAµST col-major order)
_data = np.empty((bnnz, factor.blocksize[0],
factor.blocksize[1]))
_data = np.empty((bnnz, factor.blocksize[1],
factor.blocksize[0]))
for i in range(bnnz):
_data[i] = factor.data[i].T
data1d = _data.reshape(bnnz*factor.blocksize[0]*factor.blocksize[1]).astype(type2dtype('@TYPE@'))#, 'F')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment