DGtal
1.3.beta
src
DGtal
math
linalg
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)
34
35
#define CDenseMatrix_RECURSES
36
37
#if !defined CDenseMatrix_h
38
39
#define CDenseMatrix_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 CDenseMatrix
87
template
<
typename
T>
88
struct
CDenseMatrix
:
CMatrix
<T>
89
{
90
// ----------------------- Concept checks ------------------------------
91
public
:
92
typedef
typename
T::Index
Index
;
93
typedef
typename
T::Scalar
Scalar
;
94
95
BOOST_CONCEPT_USAGE
(
CDenseMatrix
)
96
{
97
Scalar
& aa =
z
(
i
,
j
);
98
aa = aa;
// to avoid compiler warning
99
100
checkConstConstraints
();
101
}
102
103
void
checkConstConstraints
()
const
104
{
105
Scalar
bb =
z
(
i
,
j
);
106
bb = bb;
// to avoid compiler warning
107
}
108
109
// ------------------------- Private Datas --------------------------------
110
private
:
111
T
z
;
112
Index
i
,
j
;
113
114
// ------------------------- Internals ------------------------------------
115
private
:
116
117
};
// end of concept CDenseMatrix
118
}
119
}
// namespace DGtal
120
121
// //
123
124
#endif // !defined CDenseMatrix_h
125
126
#undef CDenseMatrix_RECURSES
127
#endif // else defined(CDenseMatrix_RECURSES)
DGtal::concepts::CDenseMatrix
Aim: Represent any dynamic or static sized matrix having dense representation.
Definition:
CDenseMatrix.h:88
Index
SMesh::Index Index
Definition:
fullConvexitySphereGeodesics.cpp:117
DGtal::concepts::CDenseMatrix::Index
T::Index Index
Definition:
CDenseMatrix.h:92
DGtal::concepts::CDenseMatrix::z
T z
Definition:
CDenseMatrix.h:111
DGtal::concepts::CDenseMatrix::j
Index j
Definition:
CDenseMatrix.h:112
DGtal::concepts::CDenseMatrix::checkConstConstraints
void checkConstConstraints() const
Definition:
CDenseMatrix.h:103
DGtal::concepts::CDenseMatrix::i
Index i
Definition:
CDenseMatrix.h:112
DGtal::concepts::CDenseMatrix::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CDenseMatrix)
Definition:
CDenseMatrix.h:95
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::concepts::CMatrix
Aim: Represent any static or dynamic sized matrix having sparse or dense representation.
Definition:
CMatrix.h:90
DGtal::concepts::CDenseMatrix::Scalar
T::Scalar Scalar
Definition:
CDenseMatrix.h:93
Generated on Mon Jun 20 2022 18:23:23 for DGtal by
1.8.17