imate
C++/CUDA Reference
Inverse Class Reference

Defines the function \( f: \lambda \mapsto \frac{1}{\lambda} \). More...

#include <inverse.h>

Inheritance diagram for Inverse:
Collaboration diagram for Inverse:

Public Member Functions

virtual float function (const float lambda_) const
 
virtual double function (const double lambda_) const
 
virtual long double function (const long double lambda_) const
 
- Public Member Functions inherited from Function
virtual ~Function ()
 Default virtual destructor. More...
 

Detailed Description

Defines the function \( f: \lambda \mapsto \frac{1}{\lambda} \).

The matrix function \( f: \mathbb{R}^{n \times n} \to \mathbb{R}^{n \times n} \) is used in

\[ \mathrm{trace} \left( f(\mathbf{A}) \right). \]

However, instead of a matrix function, the equivalent scalar function \( f: \mathbb{R} \to \mathbb{R} \) is defiend which acts on the eigenvalues of the matrix.

Definition at line 40 of file inverse.h.

Member Function Documentation

◆ function() [1/3]

double Inverse::function ( const double  lambda_) const
virtual
Parameters
[in]lambda_Eigenvalue (or singular value) of matrix.
Returns
The value of matrix function for the given eigenvalue.

Implements Function.

Definition at line 41 of file inverse.cpp.

42 {
43  return 1.0 / lambda_;
44 }

◆ function() [2/3]

float Inverse::function ( const float  lambda_) const
virtual
Parameters
[in]lambda_Eigenvalue (or singular value) of matrix.
Returns
The value of matrix function for the given eigenvalue.

Implements Function.

Definition at line 27 of file inverse.cpp.

28 {
29  return 1.0 / lambda_;
30 }

◆ function() [3/3]

long double Inverse::function ( const long double  lambda_) const
virtual
Parameters
[in]lambda_Eigenvalue (or singular value) of matrix.
Returns
The value of matrix function for the given eigenvalue.

Implements Function.

Definition at line 55 of file inverse.cpp.

56 {
57  return 1.0 / lambda_;
58 }

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