You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should we consider moving implementation of the solve() method below from hiopLinSolver.hpp to a source file? Simplifying API would likely help porting to GPU and managing compile-time dependencies. See also #43.
voidsolve ( hiopVector& x_ )
{
assert(M.n() == M.m());
assert(x_.get_size()==M.n());
int N=M.n(), LDA = N, info;
if(N==0) return;
hiopVectorPar* x = dynamic_cast<hiopVectorPar*>(&x_);
assert(x != NULL);
char uplo='L'; // M is upper in C++ so it's lower in fortranint NRHS=1, LDB=N;
DSYTRS(&uplo, &N, &NRHS, M.local_buffer(), &LDA, ipiv, x->local_data(), &LDB, &info);
if(info<0) {
nlp->log->printf(hovError, "hiopLinSolverIndefDenseLapack: DSYTRS returned error %d\n", info);
assert(false);
} elseif(info>0) {
nlp->log->printf(hovError, "hiopLinSolverIndefDenseLapack: DSYTRS returned error %d\n", info);
}
}
Should we consider moving implementation of the
solve()
method below fromhiopLinSolver.hpp
to a source file? Simplifying API would likely help porting to GPU and managing compile-time dependencies. See also #43.CC @ashermancinelli
The text was updated successfully, but these errors were encountered: