SplineFwd.h
Go to the documentation of this file.
1 // This file is part of Eigen, a lightweight C++ template library
2 // for linear algebra.
3 //
4 // Copyright (C) 20010-2011 Hauke Heibel <hauke.heibel@gmail.com>
5 //
6 // This Source Code Form is subject to the terms of the Mozilla
7 // Public License v. 2.0. If a copy of the MPL was not distributed
8 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 
10 #ifndef EIGEN_SPLINES_FWD_H
11 #define EIGEN_SPLINES_FWD_H
12 
13 #include "../../../../Eigen/Core"
14 
15 namespace Eigen
16 {
17  template <typename Scalar, int Dim, int Degree = Dynamic> class Spline;
18 
19  template < typename SplineType, int DerivativeOrder = Dynamic > struct SplineTraits {};
20 
25  template <typename _Scalar, int _Dim, int _Degree>
26  struct SplineTraits< Spline<_Scalar, _Dim, _Degree>, Dynamic >
27  {
28  typedef _Scalar Scalar;
29  enum { Dimension = _Dim };
30  enum { Degree = _Degree };
31 
32  enum { OrderAtCompileTime = _Degree==Dynamic ? Dynamic : _Degree+1 };
33  enum { NumOfDerivativesAtCompileTime = OrderAtCompileTime };
34 
35  enum { DerivativeMemoryLayout = Dimension==1 ? RowMajor : ColMajor };
36 
39 
42 
45 
48 
51 
54 
57  };
58 
65  template < typename _Scalar, int _Dim, int _Degree, int _DerivativeOrder >
66  struct SplineTraits< Spline<_Scalar, _Dim, _Degree>, _DerivativeOrder > : public SplineTraits< Spline<_Scalar, _Dim, _Degree> >
67  {
68  enum { OrderAtCompileTime = _Degree==Dynamic ? Dynamic : _Degree+1 };
69  enum { NumOfDerivativesAtCompileTime = _DerivativeOrder==Dynamic ? Dynamic : _DerivativeOrder+1 };
70 
71  enum { DerivativeMemoryLayout = _Dim==1 ? RowMajor : ColMajor };
72 
75 
78  };
79 
82 
85 
88 
91 }
92 
93 #endif // EIGEN_SPLINES_FWD_H
Eigen::Spline2d
Spline< double, 2 > Spline2d
2D double B-spline with dynamic degree.
Definition: SplineFwd.h:87
Eigen
Namespace containing all symbols from the Eigen library.
Definition: jet.h:637
Eigen::SplineTraits
Definition: SplineFwd.h:19
Eigen::SplineTraits< Spline< _Scalar, _Dim, _Degree >, Dynamic >::PointType
Array< Scalar, Dimension, 1 > PointType
The point type the spline is representing.
Definition: SplineFwd.h:47
Eigen::SplineTraits< Spline< _Scalar, _Dim, _Degree >, Dynamic >::ParameterVectorType
Array< Scalar, 1, Dynamic > ParameterVectorType
The data type used to store parameter vectors.
Definition: SplineFwd.h:53
Eigen::SplineTraits< Spline< _Scalar, _Dim, _Degree >, Dynamic >::ControlPointVectorType
Array< Scalar, Dimension, Dynamic > ControlPointVectorType
The data type representing the spline's control points.
Definition: SplineFwd.h:56
Eigen::Array
General-purpose arrays with easy API for coefficient-wise operations.
Definition: Array.h:45
Eigen::RowMajor
@ RowMajor
Definition: Constants.h:321
Eigen::SplineTraits< Spline< _Scalar, _Dim, _Degree >, _DerivativeOrder >::DerivativeType
Array< _Scalar, _Dim, Dynamic, DerivativeMemoryLayout, _Dim, NumOfDerivativesAtCompileTime > DerivativeType
The data type used to store the spline's derivative values.
Definition: SplineFwd.h:77
Eigen::SplineTraits< Spline< _Scalar, _Dim, _Degree >, _DerivativeOrder >::BasisDerivativeType
Array< _Scalar, Dynamic, Dynamic, RowMajor, NumOfDerivativesAtCompileTime, OrderAtCompileTime > BasisDerivativeType
The data type used to store the values of the basis function derivatives.
Definition: SplineFwd.h:74
Eigen::Spline2f
Spline< float, 2 > Spline2f
2D float B-spline with dynamic degree.
Definition: SplineFwd.h:81
Eigen::Dynamic
const int Dynamic
Definition: Constants.h:22
Eigen::Spline3f
Spline< float, 3 > Spline3f
3D float B-spline with dynamic degree.
Definition: SplineFwd.h:84
Eigen::SplineTraits< Spline< _Scalar, _Dim, _Degree >, Dynamic >::DerivativeType
Array< Scalar, Dimension, Dynamic, DerivativeMemoryLayout, Dimension, NumOfDerivativesAtCompileTime > DerivativeType
The data type used to store the spline's derivative values.
Definition: SplineFwd.h:44
Eigen::SplineTraits< Spline< _Scalar, _Dim, _Degree >, Dynamic >::KnotVectorType
Array< Scalar, 1, Dynamic > KnotVectorType
The data type used to store knot vectors.
Definition: SplineFwd.h:50
Eigen::SplineTraits< Spline< _Scalar, _Dim, _Degree >, Dynamic >::BasisVectorType
Array< Scalar, 1, OrderAtCompileTime > BasisVectorType
The data type used to store non-zero basis functions.
Definition: SplineFwd.h:38
Eigen::Spline3d
Spline< double, 3 > Spline3d
3D double B-spline with dynamic degree.
Definition: SplineFwd.h:90
Eigen::SplineTraits< Spline< _Scalar, _Dim, _Degree >, Dynamic >::Scalar
_Scalar Scalar
Definition: SplineFwd.h:28
Eigen::ColMajor
@ ColMajor
Definition: Constants.h:319
Eigen::SplineTraits< Spline< _Scalar, _Dim, _Degree >, Dynamic >::BasisDerivativeType
Array< Scalar, Dynamic, Dynamic, RowMajor, NumOfDerivativesAtCompileTime, OrderAtCompileTime > BasisDerivativeType
The data type used to store the values of the basis function derivatives.
Definition: SplineFwd.h:41
Eigen::Spline
A class representing multi-dimensional spline curves.
Definition: Spline.h:35


gtsam
Author(s):
autogenerated on Wed May 15 2024 15:22:30