DGtal 1.4.0
Loading...
Searching...
No Matches
CDenseMatrix.h
1
17#pragma once
18
31#if defined(CDenseMatrix_RECURSES)
32#error Recursive header files inclusion detected in CDenseMatrix.h
33#else // defined(CDenseMatrix_RECURSES)
35#define CDenseMatrix_RECURSES
36
37#if !defined CDenseMatrix_h
39#define CDenseMatrix_h
40
42// Inclusions
43#include <iostream>
44#include "DGtal/base/Common.h"
45#include "DGtal/math/linalg/CMatrix.h"
47
48namespace DGtal
49{
50namespace concepts
51{
53// class CDenseMatrix
87template <typename T>
89{
90 // ----------------------- Concept checks ------------------------------
91public:
92 typedef typename T::Index Index;
93 typedef typename T::Scalar Scalar;
94
96 {
97 Scalar& aa = z(i, j);
98 (void)aa; // to avoid compiler warning
100 }
101
103 {
104 Scalar bb = z(i, j);
105 (void)bb; // to avoid compiler warning
106 }
107
108 // ------------------------- Private Datas --------------------------------
109private:
110 T z;
112
113 // ------------------------- Internals ------------------------------------
114private:
115
116}; // end of concept CDenseMatrix
117}
118} // namespace DGtal
119
120// //
122
123#endif // !defined CDenseMatrix_h
124
125#undef CDenseMatrix_RECURSES
126#endif // else defined(CDenseMatrix_RECURSES)
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: Represent any dynamic or static sized matrix having dense representation.
Aim: Represent any static or dynamic sized matrix having sparse or dense representation.
Definition CMatrix.h:91