DGtal
1.3.beta
src
DGtal
math
linalg
CSparseMatrix.h
1
17
#pragma once
18
31
#if defined(CSparseMatrix_RECURSES)
32
#error Recursive header files inclusion detected in CSparseMatrix.h
33
#else // defined(CSparseMatrix_RECURSES)
34
35
#define CSparseMatrix_RECURSES
36
37
#if !defined CSparseMatrix_h
38
39
#define CSparseMatrix_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 CSparseMatrix
88
template
<
typename
T,
typename
TripletInterator>
89
struct
CSparseMatrix
:
CMatrix
<T>
90
{
91
// ----------------------- Concept checks ------------------------------
92
public
:
93
typedef
typename
T::Index
Index
;
94
95
BOOST_CONCEPT_ASSERT
((
boost::InputIterator<TripletInterator>
));
96
97
BOOST_CONCEPT_USAGE
(
CSparseMatrix
)
98
{
99
z.setFromTriplets(
ti
,
te
);
100
}
101
102
// ------------------------- Private Datas --------------------------------
103
private
:
104
T
z
;
105
TripletInterator
ti
,
te
;
106
107
// ------------------------- Internals ------------------------------------
108
private
:
109
110
};
// end of concept CSparseMatrix
111
}
112
}
// namespace DGtal
113
114
// //
116
117
#endif // !defined CSparseMatrix_h
118
119
#undef CSparseMatrix_RECURSES
120
#endif // else defined(CSparseMatrix_RECURSES)
DGtal::concepts::CSparseMatrix::BOOST_CONCEPT_USAGE
BOOST_CONCEPT_USAGE(CSparseMatrix)
Definition:
CSparseMatrix.h:97
DGtal::concepts::CSparseMatrix
Aim: Represent any dynamic or static sized matrix having sparse representation.
Definition:
CSparseMatrix.h:89
DGtal::concepts::CSparseMatrix::Index
T::Index Index
Definition:
CSparseMatrix.h:93
Index
SMesh::Index Index
Definition:
fullConvexitySphereGeodesics.cpp:117
DGtal::concepts::CSparseMatrix::ti
TripletInterator ti
Definition:
CSparseMatrix.h:105
DGtal::concepts::CSparseMatrix::z
T z
Definition:
CSparseMatrix.h:104
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
DGtal::concepts::CSparseMatrix::te
TripletInterator te
Definition:
CSparseMatrix.h:105
DGtal::concepts::CSparseMatrix::BOOST_CONCEPT_ASSERT
BOOST_CONCEPT_ASSERT((boost::InputIterator< TripletInterator >))
boost::InputIterator
Go to http://www.sgi.com/tech/stl/InputIterator.html.
Definition:
Boost.dox:36
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