MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::ComplexFactors Class Reference

#include <complex_densemat.hpp>

Inheritance diagram for mfem::ComplexFactors:
[legend]
Collaboration diagram for mfem::ComplexFactors:
[legend]

Public Member Functions

 ComplexFactors ()
 
 ComplexFactors (real_t *data_r_, real_t *data_i_)
 
void SetComplexData (int m)
 
void ResetComplexData (int m)
 
virtual bool Factor (int m, real_t TOL=0.0)
 
virtual std::complex< real_tDet (int m) const
 
virtual void Solve (int m, int n, real_t *X_r, real_t *X_i) const
 
virtual void GetInverseMatrix (int m, real_t *X_r, real_t *X_i) const
 
virtual ~ComplexFactors ()
 

Public Attributes

real_tdata_r = nullptr
 
real_tdata_i = nullptr
 
std::complex< real_t > * data = nullptr
 

Protected Member Functions

std::complex< real_t > * RealToComplex (int m, const real_t *x_r, const real_t *x_i) const
 
void ComplexToReal (int m, const std::complex< real_t > *x, real_t *x_r, real_t *x_i) const
 

Detailed Description

Abstract class that can compute factorization of external data and perform various operations with the factored data.

Definition at line 63 of file complex_densemat.hpp.

Constructor & Destructor Documentation

◆ ComplexFactors() [1/2]

mfem::ComplexFactors::ComplexFactors ( )
inline

Definition at line 80 of file complex_densemat.hpp.

◆ ComplexFactors() [2/2]

mfem::ComplexFactors::ComplexFactors ( real_t * data_r_,
real_t * data_i_ )
inline

Definition at line 82 of file complex_densemat.hpp.

◆ ~ComplexFactors()

virtual mfem::ComplexFactors::~ComplexFactors ( )
inlinevirtual

Definition at line 115 of file complex_densemat.hpp.

Member Function Documentation

◆ ComplexToReal()

void mfem::ComplexFactors::ComplexToReal ( int m,
const std::complex< real_t > * x,
real_t * x_r,
real_t * x_i ) const
protected

Definition at line 471 of file complex_densemat.cpp.

◆ Det()

virtual std::complex< real_t > mfem::ComplexFactors::Det ( int m) const
inlinevirtual

Reimplemented in mfem::ComplexCholeskyFactors, and mfem::ComplexLUFactors.

Definition at line 99 of file complex_densemat.hpp.

◆ Factor()

virtual bool mfem::ComplexFactors::Factor ( int m,
real_t TOL = 0.0 )
inlinevirtual

Reimplemented in mfem::ComplexCholeskyFactors, and mfem::ComplexLUFactors.

Definition at line 93 of file complex_densemat.hpp.

◆ GetInverseMatrix()

virtual void mfem::ComplexFactors::GetInverseMatrix ( int m,
real_t * X_r,
real_t * X_i ) const
inlinevirtual

Reimplemented in mfem::ComplexCholeskyFactors, and mfem::ComplexLUFactors.

Definition at line 110 of file complex_densemat.hpp.

◆ RealToComplex()

std::complex< real_t > * mfem::ComplexFactors::RealToComplex ( int m,
const real_t * x_r,
const real_t * x_i ) const
protected

Definition at line 438 of file complex_densemat.cpp.

◆ ResetComplexData()

void mfem::ComplexFactors::ResetComplexData ( int m)
inline

Definition at line 87 of file complex_densemat.hpp.

◆ SetComplexData()

void mfem::ComplexFactors::SetComplexData ( int m)

Definition at line 482 of file complex_densemat.cpp.

◆ Solve()

virtual void mfem::ComplexFactors::Solve ( int m,
int n,
real_t * X_r,
real_t * X_i ) const
inlinevirtual

Reimplemented in mfem::ComplexCholeskyFactors, and mfem::ComplexLUFactors.

Definition at line 105 of file complex_densemat.hpp.

Member Data Documentation

◆ data

std::complex<real_t>* mfem::ComplexFactors::data = nullptr

Definition at line 78 of file complex_densemat.hpp.

◆ data_i

real_t* mfem::ComplexFactors::data_i = nullptr

Definition at line 77 of file complex_densemat.hpp.

◆ data_r

real_t* mfem::ComplexFactors::data_r = nullptr

Definition at line 76 of file complex_densemat.hpp.


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