22#ifndef BELFEM_FN_LAPACK_GETRF_HPP
23#define BELFEM_FN_LAPACK_GETRF_HPP
87 template<
typename T >
97 "getrf not implemented for selected data type" );
112 const_cast< int_t *
>( n ),
114 const_cast< int_t *
>( lda ),
131 const_cast< int_t *
>( n ),
133 const_cast< int_t *
>( lda ),
144 std::complex< float > * a,
150 const_cast< int_t *
>( n ),
152 const_cast< int_t *
>( lda ),
163 std::complex< double > * a,
169 const_cast< int_t *
>( n ),
171 const_cast< int_t *
>( lda ),
191 template<
typename T >
202 Pivot.
set_size( std::min( m, n ), 0 );
208 "LAPACK getrf has thrown an error: %i", (
int ) info );
#define BELFEM_ERROR(aCheck,...)
Definition assert.hpp:264
Dense column-major matrix.
Definition cl_BZ_Matrix.hpp:28
size_t n_rows() const
Definition cl_AR_Matrix.hpp:205
size_t n_cols() const
Definition cl_AR_Matrix.hpp:213
T * data()
Definition cl_AR_Matrix.hpp:135
T * data()
expose the underlying raw pointer ( writable version )
Definition cl_AR_Vector.hpp:182
void set_size(const size_t aNumRows)
change the size of the vector
Definition cl_AR_Vector.hpp:237
size_t length() const
get the length of the vector
Definition cl_AR_Vector.hpp:257
Definition fn_gees.hpp:33
void zgetrf_(int_t *m, int_t *n, cplx_double_t *a, int_t *lda, int_t *ipiv, int_t *info)
constexpr bool dependent_false
Definition lapacktools.hpp:49
float cplx_float_t
Definition lapacktools.hpp:90
int_t leading_dimension(const Vector< T > &A)
logical length of a vector operand, as passed to LAPACK as LDB; vector storage is contiguous under bo...
Definition lapacktools.hpp:143
void dgetrf_(int_t *m, int_t *n, double *a, int_t *lda, int_t *ipiv, int_t *info)
double cplx_double_t
Definition lapacktools.hpp:91
void cgetrf_(int_t *m, int_t *n, cplx_float_t *a, int_t *lda, int_t *ipiv, int_t *info)
void getrf(const int_t *m, const int_t *n, T *a, const int_t *lda, int_t *ipiv, int_t *info)
Definition fn_getrf.hpp:89
void sgetrf_(int_t *m, int_t *n, float *a, int_t *lda, int_t *ipiv, int_t *info)
USER GUIDES:
Definition cl_Capacitor.cpp:16
int_t getrf(Matrix< T > &A, Vector< int_t > &Pivot, const bool AbortOnError=true)
LU factorization with partial pivoting via LAPACK ?getrf, A = P * L * U; use together with getri() to...
Definition fn_getrf.hpp:193
int32_t int_t
Definition typedefs.hpp:51