Xmipp  v3.23.11-Nereus
Public Member Functions | List of all members
cif::IdentityMatrix Class Reference
Inheritance diagram for cif::IdentityMatrix:
Inheritance graph
[legend]
Collaboration diagram for cif::IdentityMatrix:
Collaboration graph
[legend]

Public Member Functions

 IdentityMatrix (uint32_t n)
 
uint32_t dim_m () const
 
uint32_t dim_n () const
 
double operator() (uint32_t i, uint32_t j) const
 
- Public Member Functions inherited from cif::MatrixExpression< IdentityMatrix >
uint32_t dim_m () const
 
uint32_t dim_n () const
 
double & operator() (uint32_t i, uint32_t j)
 
double operator() (uint32_t i, uint32_t j) const
 

Detailed Description

Definition at line 154 of file point.cpp.

Constructor & Destructor Documentation

◆ IdentityMatrix()

cif::IdentityMatrix::IdentityMatrix ( uint32_t  n)
inline

Definition at line 157 of file point.cpp.

158  : m_n(n)
159  {
160  }
int * n

Member Function Documentation

◆ dim_m()

uint32_t cif::IdentityMatrix::dim_m ( ) const
inline

Definition at line 162 of file point.cpp.

162 { return m_n; }

◆ dim_n()

uint32_t cif::IdentityMatrix::dim_n ( ) const
inline

Definition at line 163 of file point.cpp.

163 { return m_n; }

◆ operator()()

double cif::IdentityMatrix::operator() ( uint32_t  i,
uint32_t  j 
) const
inline

Definition at line 165 of file point.cpp.

166  {
167  return i == j ? 1 : 0;
168  }
#define i
#define j

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