File failed to load: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.3/config/TeX-MML-AM_CHTML/MathJax.js
DGtal 2.0.0
DGtal::concepts::CMatrix< T > Struct Template Reference

Aim: Represent any static or dynamic sized matrix having sparse or dense representation. More...

#include <DGtal/math/linalg/CMatrix.h>

Inheritance diagram for DGtal::concepts::CMatrix< T >:
[legend]

Public Types

typedef T::Scalar Scalar
typedef T::Index Index
Public Types inherited from DGtal::concepts::CVectorSpace< T >
typedef T::Scalar Scalar

Public Member Functions

 BOOST_CONCEPT_USAGE (CMatrix)
void checkConstConstraints () const
Public Member Functions inherited from DGtal::concepts::CVectorSpace< T >
 BOOST_CONCEPT_ASSERT ((concepts::CEuclideanRing< Scalar >))
 BOOST_CONCEPT_USAGE (CVectorSpace)

Private Attributes

z
Index i
Index j

Detailed Description

template<typename T>
struct DGtal::concepts::CMatrix< T >

Aim: Represent any static or dynamic sized matrix having sparse or dense representation.

Description of concept 'CMatrix'

Refinement of

Associated types

Notation

  • Matrix : A type that is a model of CMatrix
  • x : const object of type Matrix
  • z : object of type Matrix
  • i, j : object of type Matrix::Index

Definitions

Valid expressions and semantics

Name Expression Type requirements Return type Precondition Semantics Post condition Complexity
Identity setter x.setIdentity()
Number of rows x.rows() Index
Number of columns x.cols() Index

Invariants

Models

Notes

Template Parameters
Tthe type that should be a model of CMatrix.

Definition at line 90 of file CMatrix.h.

Member Typedef Documentation

◆ Index

template<typename T>
typedef T::Index DGtal::concepts::CMatrix< T >::Index

Definition at line 95 of file CMatrix.h.

◆ Scalar

template<typename T>
typedef T::Scalar DGtal::concepts::CMatrix< T >::Scalar

Definition at line 94 of file CMatrix.h.

Member Function Documentation

◆ BOOST_CONCEPT_USAGE()

template<typename T>
DGtal::concepts::CMatrix< T >::BOOST_CONCEPT_USAGE ( CMatrix< T > )
inline

Definition at line 97 of file CMatrix.h.

98 {
99 z.setIdentity();
101 }
void checkConstConstraints() const
Definition CMatrix.h:103

References checkConstConstraints(), and z.

◆ checkConstConstraints()

template<typename T>
void DGtal::concepts::CMatrix< T >::checkConstConstraints ( ) const
inline

Definition at line 103 of file CMatrix.h.

104 {
105 ConceptUtils::sameType(i, z.rows());
106 ConceptUtils::sameType(j, z.cols());
107 }
void sameType(const T &, const T &)

References i, j, DGtal::concepts::ConceptUtils::sameType(), and z.

Referenced by BOOST_CONCEPT_USAGE().

Field Documentation

◆ i

template<typename T>
Index DGtal::concepts::CMatrix< T >::i
private

Definition at line 111 of file CMatrix.h.

Referenced by checkConstConstraints().

◆ j

template<typename T>
Index DGtal::concepts::CMatrix< T >::j
private

Definition at line 111 of file CMatrix.h.

Referenced by checkConstConstraints().

◆ z

template<typename T>
T DGtal::concepts::CMatrix< T >::z
private

Definition at line 110 of file CMatrix.h.

Referenced by BOOST_CONCEPT_USAGE(), and checkConstConstraints().


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