Searched defs:GslTraits (Results 1 – 1 of 1) sorted by relevance
/external/eigen/test/eigen2/ |
D | gsl_helper.h | 24 template<typename Scalar, bool IsComplex = NumTraits<Scalar>::IsComplex> struct GslTraits struct 26 typedef gsl_matrix* Matrix; 27 typedef gsl_vector* Vector; 28 static Matrix createMatrix(int rows, int cols) { return gsl_matrix_alloc(rows,cols); } in createMatrix() 29 static Vector createVector(int size) { return gsl_vector_alloc(size); } in createVector() 30 static void free(Matrix& m) { gsl_matrix_free(m); m=0; } in free() 31 static void free(Vector& m) { gsl_vector_free(m); m=0; } in free() 32 … void prod(const Matrix& m, const Vector& v, Vector& x) { gsl_blas_dgemv(CblasNoTrans,1,m,v,0,x); } in prod() 33 static void cholesky(Matrix& m) { gsl_linalg_cholesky_decomp(m); } in cholesky() 34 …d cholesky_solve(const Matrix& m, const Vector& b, Vector& x) { gsl_linalg_cholesky_solve(m,b,x); } in cholesky_solve() [all …]
|