DGtal
1.3.beta
src
DGtal
math
linalg
CStaticMatrix.h
1
17
#pragma once
18
31
#if defined(CStaticMatrix_RECURSES)
32
#error Recursive header files inclusion detected in CStaticMatrix.h
33
#else // defined(CStaticMatrix_RECURSES)
34
35
#define CStaticMatrix_RECURSES
36
37
#if !defined CStaticMatrix_h
38
39
#define CStaticMatrix_h
40
42
// Inclusions
43
#include <iostream>
44
#include "DGtal/base/Common.h"
45
#include "DGtal/math/linalg/CMatrix.h"
47
48
namespace
DGtal
49
{
50
namespace
concepts
51
{
53
// class CStaticMatrix
88
template
<
typename
T>
89
struct
CStaticMatrix
:
CMatrix
<T>,
boost::DefaultConstructible
<T>
90
{
91
// ----------------------- Concept checks ------------------------------
92
public
:
93
typedef
typename
T::Index
Index
;
94
95
BOOST_CONCEPT_USAGE
(
CStaticMatrix
)
96
{
97
ConceptUtils::sameType
(
i
, T::M );
98
ConceptUtils::sameType
(
j
, T::N );
99
}
100
// ------------------------- Private Datas --------------------------------
101
private
:
102
Index
i
,
j
;
103
104
// ------------------------- Internals ------------------------------------
105
private
:
106
107
};
// end of concept CStaticMatrix
108
}
109
}
// namespace DGtal
110
111
// //
113
114
#endif // !defined CStaticMatrix_h
115
116
#undef CStaticMatrix_RECURSES
117
#endif // else defined(CStaticMatrix_RECURSES)
boost::DefaultConstructible
Go to http://www.sgi.com/tech/stl/DefaultConstructible.html.
Definition:
Boost.dox:30
DGtal::concepts::CStaticMatrix::Index
T::Index Index
Definition:
CStaticMatrix.h:93
DGtal::concepts::CStaticMatrix
Aim: Represent any static sized matrix having sparse or dense representation.
Definition:
CStaticMatrix.h:89
Index
SMesh::Index Index
Definition:
fullConvexitySphereGeodesics.cpp:117
DGtal::concepts::CStaticMatrix::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CStaticMatrix)
Definition:
CStaticMatrix.h:95
DGtal::concepts::CStaticMatrix::j
Index j
Definition:
CStaticMatrix.h:102
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::concepts::CStaticMatrix::i
Index i
Definition:
CStaticMatrix.h:102
DGtal::concepts::CMatrix::Index
T::Index Index
Definition:
CMatrix.h:95
DGtal::concepts::ConceptUtils::sameType
void sameType(const T &, const T &)
Definition:
ConceptUtils.h:117
DGtal::concepts::CMatrix
Aim: Represent any static or dynamic sized matrix having sparse or dense representation.
Definition:
CMatrix.h:90
Generated on Mon Jun 20 2022 18:23:27 for DGtal by
1.8.17