math/fwd.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2017 CNRS
3 //
4 // This file is part of tsid
5 // tsid is free software: you can redistribute it
6 // and/or modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation, either version
8 // 3 of the License, or (at your option) any later version.
9 // tsid is distributed in the hope that it will be
10 // useful, but WITHOUT ANY WARRANTY; without even the implied warranty
11 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // General Lesser Public License for more details. You should have
13 // received a copy of the GNU Lesser General Public License along with
14 // tsid If not, see
15 // <http://www.gnu.org/licenses/>.
16 //
17 
18 #ifndef __invdyn_math_fwd_hpp__
19 #define __invdyn_math_fwd_hpp__
20 
21 #include <Eigen/Core>
22 
23 #ifdef EIGEN_RUNTIME_NO_MALLOC
24 #define EIGEN_MALLOC_ALLOWED Eigen::internal::set_is_malloc_allowed(true);
25 #define EIGEN_MALLOC_NOT_ALLOWED Eigen::internal::set_is_malloc_allowed(false);
26 #else
27 #define EIGEN_MALLOC_ALLOWED
28 #define EIGEN_MALLOC_NOT_ALLOWED
29 #endif
30 
31 namespace tsid {
32 namespace math {
33 
34 typedef double Scalar;
35 typedef Eigen::Matrix<Scalar, Eigen::Dynamic, 1> Vector;
36 typedef Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> Matrix;
38 typedef Eigen::Matrix<bool, Eigen::Dynamic, 1> VectorXb;
39 
40 typedef Eigen::Matrix<Scalar, 3, 1> Vector3;
41 typedef Eigen::Matrix<Scalar, 6, 1> Vector6;
42 typedef Eigen::Matrix<Scalar, 3, Eigen::Dynamic> Matrix3x;
43 
44 typedef Eigen::Ref<Vector3> RefVector3;
45 typedef const Eigen::Ref<const Vector3> ConstRefVector3;
46 
47 typedef Eigen::Ref<Vector> RefVector;
48 typedef const Eigen::Ref<const Vector> ConstRefVector;
49 
50 typedef Eigen::Ref<Matrix> RefMatrix;
51 typedef const Eigen::Ref<const Matrix> ConstRefMatrix;
52 
53 typedef std::size_t Index;
54 
55 // Forward declaration of constraints
56 class ConstraintBase;
57 class ConstraintEquality;
59 class ConstraintBound;
60 
61 } // namespace math
62 } // namespace tsid
63 
64 #endif // ifndef __invdyn_math_fwd_hpp__
tsid::math::ConstraintEquality
Definition: math/constraint-equality.hpp:26
tsid::math::ConstraintBase
Abstract class representing a linear equality/inequality constraint. Equality constraints are represe...
Definition: constraint-base.hpp:35
tsid::math::ConstraintBound
Definition: math/constraint-bound.hpp:26
tsid::math::Matrix3x
Eigen::Matrix< Scalar, 3, Eigen::Dynamic > Matrix3x
Definition: math/fwd.hpp:42
tsid::math::RefMatrix
Eigen::Ref< Matrix > RefMatrix
Definition: math/fwd.hpp:50
tsid::math::VectorXb
Eigen::Matrix< bool, Eigen::Dynamic, 1 > VectorXb
Definition: math/fwd.hpp:38
tsid::math::Vector6
Eigen::Matrix< Scalar, 6, 1 > Vector6
Definition: math/fwd.hpp:41
tsid::math::ConstRefVector3
const typedef Eigen::Ref< const Vector3 > ConstRefVector3
Definition: math/fwd.hpp:45
tsid::math::Index
std::size_t Index
Definition: math/fwd.hpp:53
tsid::math::VectorXi
Eigen::VectorXi VectorXi
Definition: math/fwd.hpp:37
tsid::math::RefVector
Eigen::Ref< Vector > RefVector
Definition: math/fwd.hpp:47
tsid::math::Matrix
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > Matrix
Definition: math/fwd.hpp:36
tsid::math::ConstraintInequality
Definition: math/constraint-inequality.hpp:26
tsid::math::ConstRefVector
const typedef Eigen::Ref< const Vector > ConstRefVector
Definition: math/fwd.hpp:48
tsid::math::Vector
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
Definition: math/fwd.hpp:35
tsid::math::Scalar
double Scalar
Definition: math/fwd.hpp:34
tsid
Definition: bindings/python/constraint/constraint-bound.cpp:21
tsid::math::ConstRefMatrix
const typedef Eigen::Ref< const Matrix > ConstRefMatrix
Definition: math/fwd.hpp:51
tsid::math::Vector3
Eigen::Matrix< Scalar, 3, 1 > Vector3
Definition: math/fwd.hpp:40
tsid::math::RefVector3
Eigen::Ref< Vector3 > RefVector3
Definition: math/fwd.hpp:44


tsid
Author(s): Andrea Del Prete, Justin Carpentier
autogenerated on Thu Apr 3 2025 02:47:15