DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
CDenseMatrix.h
1
16
17
#pragma once
18
30
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
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
(void)aa;
// to avoid compiler warning
99
checkConstConstraints
();
100
}
101
102
void
checkConstConstraints
()
const
103
{
104
Scalar
bb =
z
(
i
,
j
);
105
(void)bb;
// to avoid compiler warning
106
}
107
108
// ------------------------- Private Data --------------------------------
109
private
:
110
T
z
;
111
Index
i
,
j
;
112
113
// ------------------------- Internals ------------------------------------
114
private
:
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::concepts
Aim: Gathers several functions useful for concept checks.
Definition
CPositiveIrreducibleFraction.h:54
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
DGtal::concepts::CDenseMatrix
Aim: Represent any dynamic or static sized matrix having dense representation.
Definition
CDenseMatrix.h:89
DGtal::concepts::CDenseMatrix::i
Index i
Definition
CDenseMatrix.h:111
DGtal::concepts::CDenseMatrix::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CDenseMatrix)
Definition
CDenseMatrix.h:95
DGtal::concepts::CDenseMatrix::Scalar
T::Scalar Scalar
Definition
CDenseMatrix.h:93
DGtal::concepts::CDenseMatrix::Index
T::Index Index
Definition
CDenseMatrix.h:92
DGtal::concepts::CDenseMatrix::checkConstConstraints
void checkConstConstraints() const
Definition
CDenseMatrix.h:102
DGtal::concepts::CDenseMatrix::j
Index j
Definition
CDenseMatrix.h:111
DGtal::concepts::CDenseMatrix::z
T z
Definition
CDenseMatrix.h:110
DGtal::concepts::CMatrix
Aim: Represent any static or dynamic sized matrix having sparse or dense representation.
Definition
CMatrix.h:91
src
DGtal
math
linalg
CDenseMatrix.h
Generated on
for DGtal by
1.18.0