pinocchio  3.7.0
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
 
Loading...
Searching...
No Matches
aligned-vector.hpp
1//
2// Copyright (c) 2016-2024 CNRS INRIA
3//
4
5#ifndef __pinocchio_container_aligned_vector_hpp__
6#define __pinocchio_container_aligned_vector_hpp__
7
8#include <vector>
9#include <Eigen/StdVector>
10
11#define PINOCCHIO_ALIGNED_STD_VECTOR(Type) ::pinocchio::container::aligned_vector<Type>
12
13#define PINOCCHIO_STD_VECTOR_WITH_EIGEN_ALLOCATOR(T) ::pinocchio::container::aligned_vector<T>
14
15namespace pinocchio
16{
17 namespace container
18 {
19
20 template<typename T>
21 using aligned_vector = std::vector<T, Eigen::aligned_allocator<T>>;
22
23 } // namespace container
24
25} // namespace pinocchio
26
27#endif // ifndef __pinocchio_container_aligned_vector_hpp__
Main pinocchio namespace.
Definition treeview.dox:11