Registered Member
|
Hi everyone,
My plan is to write some methods that use eigen and create a class library dll that gets called from a c# program. I had it working when I was using MatrixXf, but when I use SparseMatrix, I get the following error: AccessViolationException was unhandled Attempted to read or write protected memory. This is often an indication that other memory is corrupt. The c# code that calls the method resembles the following:
and in the .dll file I have something like the following:
where the error is caused by the line
whereas something like
works fine. I realize that C# probably doesn't approve of something about how sparse matrices are stored in memory, but might there be an easy workaround? |
Registered Member
|
oops, needed to declare it as DynamicSparseMatrix in order to define its indices like that.
|
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft