Mentions légales du service

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

Fix mex new_faust wrong size of created MatBSR browptr buffer.

parent 905c8412
Branches
Tags
No related merge requests found
...@@ -47,7 +47,7 @@ void new_faust(const mxArray **prhs, const int nrhs, mxArray **plhs, const int n ...@@ -47,7 +47,7 @@ void new_faust(const mxArray **prhs, const int nrhs, mxArray **plhs, const int n
mxArray2Ptr(mx_tmp, browptr_); mxArray2Ptr(mx_tmp, browptr_);
int* browptr = new int[nrows/bnrows+1]; int* browptr = new int[nrows/bnrows+1];
browptr[0] = 0; browptr[0] = 0;
for(int i=1;i<bnrows+1;i++) for(int i=1;i<nrows/bnrows+1;i++)
browptr[i] = browptr_[i-1] + browptr[i-1]; browptr[i] = browptr_[i-1] + browptr[i-1];
// auto bsr_mat = new Faust::MatBSR<SCALAR, DEV>(nrows, ncols, bnrows, bncols, bnnz, bdata, browptr, bcolinds); // auto bsr_mat = new Faust::MatBSR<SCALAR, DEV>(nrows, ncols, bnrows, bncols, bnnz, bdata, browptr, bcolinds);
// list_factor.push_back(bsr_mat); // list_factor.push_back(bsr_mat);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment