33 #ifndef __H__UG__CPU_ALGEBRA__NOLAPACK_INVERT_H_
34 #define __H__UG__CPU_ALGEBRA__NOLAPACK_INVERT_H_
36 #include "../small_matrix/densematrix.h"
37 #include "../small_matrix/densevector.h"
38 #include "../small_matrix/block_dense.h"
42 template<
typename TMatrix,
typename TInverseMatrixType,
typename TVector>
45 x.resize(mat.num_rows());
46 e.resize(mat.num_rows());
47 for(
size_t c=0; c<mat.num_rows(); c++)
52 for(
size_t r=0; r<mat.num_cols(); r++)
58 template<
typename TMatrix,
typename TVector>
67 typename block_traits<DenseMatrix<T> >::inverse_type inv;
77 template<
typename T,
size_t TUnknowns>
78 bool Invert(DenseMatrix<FixedArray2<T, TUnknowns, TUnknowns> > &mat)
80 typename block_traits<DenseMatrix<T> >::inverse_type inv;
TStorage::value_type value_type
Definition: densevector.h:103
bool GetInverse(block_traits< T >::inverse_type &inv, const T &m)
void InverseFromInverseType(TMatrix &mat, TInverseMatrixType &inv, TVector &x, TVector &e)
Definition: nolapack_invert.h:43
bool InvertNdyn(DenseMatrix< T > &mat)
Definition: lapack_invert.h:47
bool MatMult(vector_t &dest, const number &beta1, const matrix_t &A1, const vector_t &w1)
calculates dest = beta1 * A1;
Definition: operations_mat.h:59