DGtal  0.9.2
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>
90 {
91  // ----------------------- Concept checks ------------------------------
92 public:
93  typedef typename T::Index Index;
94 
96 
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)
Aim: Represent any dynamic or static sized matrix having sparse representation.
Definition: CSparseMatrix.h:89
Aim: Represent any static or dynamic sized matrix having sparse or dense representation.
Definition: CMatrix.h:90
DGtal is the top-level namespace which contains all DGtal functions and types.
Go to http://www.sgi.com/tech/stl/InputIterator.html.
Definition: Boost.dox:36
BOOST_CONCEPT_ASSERT((boost::InputIterator< TripletInterator >))
BOOST_CONCEPT_USAGE(CSparseMatrix)
Definition: CSparseMatrix.h:97