imate
C++/CUDA Reference
Identity Class Reference

Defines the function \( f: \lambda \mapsto \lambda \). More...

#include <identity.h>

Inheritance diagram for Identity:
Collaboration diagram for Identity:

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 \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 identity.h.

Member Function Documentation

◆ function() [1/3]

double Identity::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 identity.cpp.

42 {
43  return lambda_;
44 }

◆ function() [2/3]

float Identity::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 identity.cpp.

28 {
29  return lambda_;
30 }

◆ function() [3/3]

long double Identity::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 identity.cpp.

56 {
57  return lambda_;
58 }

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