User Guide
nmodl::crout Namespace Reference

Functions

template<typename T >
EIGEN_DEVICE_FUNC int Crout (int n, T *const a, int *const perm, double *const rowmax)
 Crout matrix decomposition : in-place LU Decomposition of matrix a. More...
 
template<typename T >
EIGEN_DEVICE_FUNC int solveCrout (int n, T const *const a, T const *const b, T *const p, int const *const perm, int const *const y=nullptr)
 

Function Documentation

◆ Crout()

template<typename T >
EIGEN_DEVICE_FUNC int nmodl::crout::Crout ( int  n,
T *const  a,
int *const  perm,
double *const  rowmax 
)
inline

Crout matrix decomposition : in-place LU Decomposition of matrix a.

Implementation details : (Legacy code) nrn / scopmath / crout.c

Returns: 0 if no error; -1 if matrix is singular or ill-conditioned

Definition at line 41 of file crout.hpp.

◆ solveCrout()

template<typename T >
EIGEN_DEVICE_FUNC int nmodl::crout::solveCrout ( int  n,
T const *const  a,
T const *const  b,
T *const  p,
int const *const  perm,
int const *const  y = nullptr 
)
inline

Definition at line 140 of file crout.hpp.