Comments (1)
In superluc.h
, add
inline void* mallocARTYPE(int size, int dtype)
{
if (dtype == SLU_D) { // calling the double precision routine.
return doubleMalloc(size);
}
else if (dtype == SLU_S) { // calling the single precision routine.
return floatMalloc(size);
}
else if (dtype == SLU_Z) { // calling the double precision complex routine.
return doublecomplexMalloc(size);
}
else { // calling the single precision complex routine.
return complexMalloc(size);
}
}
and in FactorAsI
, change memory allocation to
irowi = (int*)malloc(sizeof(int) * (nnz+this->n));
pcoli = (int*)malloc(sizeof(int) * (this->n+1));
asi = (ARTYPE*)mallocARTYPE(nnz+this->n, A.Dtype);
This fixes the issue for me.
EDIT:
asi = (ARTYPE*)malloc(sizeof(ARTYPE) * (nnz + this->n));
works just as well, so no need to edit superluc.h
.
from arpackpp.
Related Issues (20)
- Wrong method signatures HOT 1
- Wrong eigenvalues with UMFpack HOT 5
- compiling on windows HOT 1
- Installing with dynamic gfortran library HOT 8
- Valgrind Error from ARrcStdEig::FindEigenvalues
- Error with multiple threads HOT 2
- install-superlu.sh download link fix
- Question about the arpackpp HOT 1
- Integer overflow HOT 4
- Is it possible to use `gemv` from BLAS directly on `ARdsNonSymMatrix`? HOT 2
- How to use `ARSymStdEig` in the shift-invert mode? HOT 2
- Generalised eigenvalue problem with shift-inverse mode using UMFPACK HOT 2
- Plans to make a release? HOT 2
- Update the ARPACK++ documentation HOT 3
- Error while using ARNonSymStdEig HOT 2
- Duplicate symbols when linking two objects including arsnsym.h HOT 2
- Error when compile with gcc 5.4 HOT 4
- superlu 5.0 should set $BLAS HOT 1
- Posible memory leak? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arpackpp.