User Guide
crout.hpp File Reference

Implementation of Crout matrix decomposition (LU decomposition) followed by Forward/Backward substitution: Implementation details : (Legacy code) nrn / scopmath / crout.c. More...

Detailed Description

Implementation of Crout matrix decomposition (LU decomposition) followed by Forward/Backward substitution: Implementation details : (Legacy code) nrn / scopmath / crout.c.

Definition in file crout.hpp.

#include <Eigen/Core>
#include <cmath>

Go to the source code of this file.

Namespaces

 nmodl
 encapsulates code generation backend implementations
 
 nmodl::crout
 

Macros

#define y_(arg)   p[y[arg]]
 Crout matrix decomposition : Forward/Backward substitution. More...
 
#define b_(arg)   b[arg]
 

Functions

template<typename T >
EIGEN_DEVICE_FUNC int nmodl::crout::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 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)
 

Macro Definition Documentation

◆ b_

#define b_ (   arg)    b[arg]

Definition at line 137 of file crout.hpp.

◆ y_

#define y_ (   arg)    p[y[arg]]

Crout matrix decomposition : Forward/Backward substitution.

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

Returns: no return variable

Definition at line 136 of file crout.hpp.