GooseFEM 1.4.1.dev2+g78f16df
Loading...
Searching...
No Matches
GooseFEM::MatrixSolverBase< 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 >
void solve (M &A, const array_type::tensor< double, 2 > &b, array_type::tensor< double, 2 > &x)
 Solve \( x = A^{-1} b \).
 
template<class M >
void solve (M &A, const array_type::tensor< double, 1 > &b, array_type::tensor< double, 1 > &x)
 Solve \( x = A^{-1} b \).
 

Detailed Description

template<class D>
class GooseFEM::MatrixSolverBase< D >

CRTP base class for a solver class.

Definition at line 26 of file Matrix.h.

Member Typedef Documentation

◆ derived_type

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

Underlying type.

Definition at line 31 of file Matrix.h.

Member Function Documentation

◆ solve() [1/2]

template<class D >
template<class M >
void GooseFEM::MatrixSolverBase< D >::solve ( M & A,
const array_type::tensor< double, 1 > & b,
array_type::tensor< double, 1 > & x )
inline

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

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

Definition at line 68 of file Matrix.h.

◆ solve() [2/2]

template<class D >
template<class M >
void GooseFEM::MatrixSolverBase< D >::solve ( M & A,
const array_type::tensor< double, 2 > & b,
array_type::tensor< double, 2 > & x )
inline

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

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

Definition at line 53 of file Matrix.h.


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