DGtal 1.3.0
Loading...
Searching...
No Matches
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)
35#define CSparseMatrix_RECURSES
36
37#if !defined CSparseMatrix_h
39#define CSparseMatrix_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 CSparseMatrix
88template <typename T, typename TripletInterator>
90{
91 // ----------------------- Concept checks ------------------------------
92public:
93 typedef typename T::Index Index;
94
96
98 {
99 z.setFromTriplets(ti, te);
100 }
101
102 // ------------------------- Private Datas --------------------------------
103private:
104 T z;
105 TripletInterator ti, te;
106
107 // ------------------------- Internals ------------------------------------
108private:
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 is the top-level namespace which contains all DGtal functions and types.
Aim: Represent any static or dynamic sized matrix having sparse or dense representation.
Definition: CMatrix.h:91
Aim: Represent any dynamic or static sized matrix having sparse representation.
Definition: CSparseMatrix.h:90
BOOST_CONCEPT_USAGE(CSparseMatrix)
Definition: CSparseMatrix.h:97
BOOST_CONCEPT_ASSERT((boost::InputIterator< TripletInterator >))
Go to http://www.sgi.com/tech/stl/InputIterator.html.
Definition: Boost.dox:36