GooseFEM 1.4.1.dev2+g78f16df
Loading...
Searching...
No Matches
GooseFEM::MatrixSolverSingleBase< D > Class Template Reference

CRTP base class for a solver class. More...

#include <GooseFEM/Matrix.h>

Public Types

using derived_type = D
 Underlying type.
 

Public Member Functions

template<class M >
array_type::tensor< double, 2 > Solve (M &A, const array_type::tensor< double, 2 > &b)
 Solve \( x = A^{-1} b \).
 
template<class M >
array_type::tensor< double, 1 > Solve (M &A, const array_type::tensor< double, 1 > &b)
 Solve \( x = A^{-1} b \).
 

Detailed Description

template<class D>
class GooseFEM::MatrixSolverSingleBase< D >

CRTP base class for a solver class.

Definition at line 80 of file Matrix.h.

Member Typedef Documentation

◆ derived_type

template<class D >
using GooseFEM::MatrixSolverSingleBase< D >::derived_type = D

Underlying type.

Definition at line 85 of file Matrix.h.

Member Function Documentation

◆ Solve() [1/2]

template<class D >
template<class M >
array_type::tensor< double, 1 > GooseFEM::MatrixSolverSingleBase< D >::Solve ( M & A,
const array_type::tensor< double, 1 > & b )
inline

Solve \( x = A^{-1} b \).

Parameters
AGooseFEM (sparse) matrix, see e.g. GooseFEM::Matrix().
bdofval [ndof].
Returns
x dofval [ndof].

Definition at line 123 of file Matrix.h.

◆ Solve() [2/2]

template<class D >
template<class M >
array_type::tensor< double, 2 > GooseFEM::MatrixSolverSingleBase< D >::Solve ( M & A,
const array_type::tensor< double, 2 > & b )
inline

Solve \( x = A^{-1} b \).

Parameters
AGooseFEM (sparse) matrix, see e.g. GooseFEM::Matrix().
bnodevec [nelem, ndim].
Returns
x nodevec [nelem, ndim].

Definition at line 107 of file Matrix.h.


The documentation for this class was generated from the following file: