#include "pinocchio/macros.hpp"
#include <Eigen/Dense>
#include <Eigen/Geometry>
#include <Eigen/StdVector>
#include <benchmark/benchmark.h>
Go to the source code of this file.
Functions | |
Apply (CustomArgumentsDynamicMatrix) | |
Apply (CustomArgumentsDynamicMatrixTranspose) | |
BENCHMARK (matrixDynamicMultVector) -> Apply(CustomArguments) ->Arg(3) ->Arg(4) | |
BENCHMARK (matrixMultMatrix< 3, ColMajor, ColMajor, ColMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 3, ColMajor, ColMajor, RowMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 3, ColMajor, RowMajor, ColMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 3, ColMajor, RowMajor, RowMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 3, RowMajor, ColMajor, ColMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 3, RowMajor, ColMajor, RowMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 3, RowMajor, RowMajor, ColMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 3, RowMajor, RowMajor, RowMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 4, ColMajor, ColMajor, ColMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 4, ColMajor, ColMajor, RowMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 4, ColMajor, RowMajor, ColMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 4, ColMajor, RowMajor, RowMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 4, RowMajor, ColMajor, ColMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 4, RowMajor, ColMajor, RowMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 4, RowMajor, RowMajor, ColMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 4, RowMajor, RowMajor, RowMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 50, ColMajor, ColMajor, ColMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 50, ColMajor, ColMajor, RowMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 50, ColMajor, RowMajor, ColMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 50, ColMajor, RowMajor, RowMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 50, RowMajor, ColMajor, ColMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 50, RowMajor, ColMajor, RowMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 50, RowMajor, RowMajor, ColMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultMatrix< 50, RowMajor, RowMajor, RowMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultVector< 3 >) -> Apply(CustomArguments) | |
BENCHMARK (matrixMultVector< 4 >) -> Apply(CustomArguments) | |
BENCHMARK (matrixTransposeMultMatrix< 4, ColMajor, ColMajor, ColMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixTransposeMultMatrix< 4, ColMajor, ColMajor, RowMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixTransposeMultMatrix< 4, ColMajor, RowMajor, ColMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixTransposeMultMatrix< 4, ColMajor, RowMajor, RowMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixTransposeMultMatrix< 4, RowMajor, ColMajor, ColMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixTransposeMultMatrix< 4, RowMajor, ColMajor, RowMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixTransposeMultMatrix< 4, RowMajor, RowMajor, ColMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixTransposeMultMatrix< 4, RowMajor, RowMajor, RowMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixTransposeMultMatrix< 50, ColMajor, ColMajor, ColMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixTransposeMultMatrix< 50, ColMajor, ColMajor, RowMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixTransposeMultMatrix< 50, ColMajor, RowMajor, ColMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixTransposeMultMatrix< 50, ColMajor, RowMajor, RowMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixTransposeMultMatrix< 50, RowMajor, ColMajor, ColMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixTransposeMultMatrix< 50, RowMajor, ColMajor, RowMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixTransposeMultMatrix< 50, RowMajor, RowMajor, ColMajor >) -> Apply(CustomArguments) | |
BENCHMARK (matrixTransposeMultMatrix< 50, RowMajor, RowMajor, RowMajor >) -> Apply(CustomArguments) | |
BENCHMARK (quaternionMultQuaternion) -> Apply(CustomArguments) | |
BENCHMARK (quaternionMultVector) -> Apply(CustomArguments) | |
BENCHMARK (quaternionMultVectorX) -> Apply(CustomArguments) | |
BENCHMARK (quaternionToMatrix) -> Apply(CustomArguments) | |
BENCHMARK_MAIN () | |
static void | CustomArguments (benchmark::internal::Benchmark *b) |
static void | CustomArgumentsDynamicMatrix (benchmark::internal::Benchmark *b) |
static void | CustomArgumentsDynamicMatrixTranspose (benchmark::internal::Benchmark *b) |
template<int OptionM1, int OptionM2, int OptionM3> | |
static void | matrixDynamicMultMatrix (benchmark::State &st) |
template<int OptionM1, int OptionM2, int OptionM3> | |
PINOCCHIO_DONT_INLINE void | matrixDynamicMultMatrixCall (const Matrix< double, Dynamic, Dynamic, OptionM1 > &m, const Matrix< double, Dynamic, Dynamic, OptionM2 > &rhs, Matrix< double, Dynamic, Dynamic, OptionM3 > &lhs) |
static void | matrixDynamicMultVector (benchmark::State &st) |
PINOCCHIO_DONT_INLINE void | matrixDynamicMultVectorCall (const MatrixXd &m, const MatrixXd &rhs, MatrixXd &lhs) |
template<int OptionM1, int OptionM2, int OptionM3> | |
static void | matrixDynamicTransposeMultMatrix (benchmark::State &st) |
template<int OptionM1, int OptionM2, int OptionM3> | |
PINOCCHIO_DONT_INLINE void | matrixDynamicTransposeMultMatrixCall (const Matrix< double, Dynamic, Dynamic, OptionM1 > &m, const Matrix< double, Dynamic, Dynamic, OptionM2 > &rhs, Matrix< double, Dynamic, Dynamic, OptionM3 > &lhs) |
template<int MSIZE, int OptionM1, int OptionM2, int OptionM3> | |
static void | matrixMultMatrix (benchmark::State &st) |
template<int MSIZE, int OptionM1, int OptionM2, int OptionM3> | |
PINOCCHIO_DONT_INLINE void | matrixMultMatrixCall (const Matrix< double, MSIZE, MSIZE, OptionM1 > &m, const Matrix< double, MSIZE, MSIZE, OptionM2 > &rhs, Matrix< double, MSIZE, MSIZE, OptionM3 > &lhs) |
template<int MSIZE> | |
static void | matrixMultVector (benchmark::State &st) |
template<int MSIZE> | |
PINOCCHIO_DONT_INLINE void | matrixMultVectorCall (const Matrix< double, MSIZE, MSIZE > &m, const Matrix< double, MSIZE, 1 > &rhs, Matrix< double, MSIZE, 1 > &lhs) |
template<int MSIZE, int OptionM1, int OptionM2, int OptionM3> | |
static void | matrixTransposeMultMatrix (benchmark::State &st) |
template<int MSIZE, int OptionM1, int OptionM2, int OptionM3> | |
PINOCCHIO_DONT_INLINE void | matrixTransposeMultMatrixCall (const Matrix< double, MSIZE, MSIZE, OptionM1 > &m, const Matrix< double, MSIZE, MSIZE, OptionM2 > &rhs, Matrix< double, MSIZE, MSIZE, OptionM3 > &lhs) |
static void | quaternionMultQuaternion (benchmark::State &st) |
PINOCCHIO_DONT_INLINE void | quaternionMultQuaternionCall (const Quaterniond &q, const Quaterniond &rhs, Quaterniond &lhs) |
static void | quaternionMultVector (benchmark::State &st) |
PINOCCHIO_DONT_INLINE void | quaternionMultVectorCall (const Quaterniond &q, const Vector3d &rhs, Vector3d &lhs) |
static void | quaternionMultVectorX (benchmark::State &st) |
PINOCCHIO_DONT_INLINE void | quaternionMultVectorXCall (const Quaterniond &q, const VectorXd &rhs, VectorXd &lhs) |
static void | quaternionToMatrix (benchmark::State &st) |
PINOCCHIO_DONT_INLINE void | quaternionToMatrixCall (const Quaterniond &q, Matrix3d &m) |
Apply | ( | CustomArgumentsDynamicMatrix | ) |
Apply | ( | CustomArgumentsDynamicMatrixTranspose | ) |
BENCHMARK | ( | matrixDynamicMultVector | ) | -> Apply(CustomArguments) ->Arg(3) ->Arg(4) |
BENCHMARK | ( | matrixMultMatrix< 3, ColMajor, ColMajor, ColMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 3, ColMajor, ColMajor, RowMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 3, ColMajor, RowMajor, ColMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 3, ColMajor, RowMajor, RowMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 3, RowMajor, ColMajor, ColMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 3, RowMajor, ColMajor, RowMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 3, RowMajor, RowMajor, ColMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 3, RowMajor, RowMajor, RowMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 4, ColMajor, ColMajor, ColMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 4, ColMajor, ColMajor, RowMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 4, ColMajor, RowMajor, ColMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 4, ColMajor, RowMajor, RowMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 4, RowMajor, ColMajor, ColMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 4, RowMajor, ColMajor, RowMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 4, RowMajor, RowMajor, ColMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 4, RowMajor, RowMajor, RowMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 50, ColMajor, ColMajor, ColMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 50, ColMajor, ColMajor, RowMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 50, ColMajor, RowMajor, ColMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 50, ColMajor, RowMajor, RowMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 50, RowMajor, ColMajor, ColMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 50, RowMajor, ColMajor, RowMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 50, RowMajor, RowMajor, ColMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultMatrix< 50, RowMajor, RowMajor, RowMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultVector< 3 > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixMultVector< 4 > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixTransposeMultMatrix< 4, ColMajor, ColMajor, ColMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixTransposeMultMatrix< 4, ColMajor, ColMajor, RowMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixTransposeMultMatrix< 4, ColMajor, RowMajor, ColMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixTransposeMultMatrix< 4, ColMajor, RowMajor, RowMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixTransposeMultMatrix< 4, RowMajor, ColMajor, ColMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixTransposeMultMatrix< 4, RowMajor, ColMajor, RowMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixTransposeMultMatrix< 4, RowMajor, RowMajor, ColMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixTransposeMultMatrix< 4, RowMajor, RowMajor, RowMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixTransposeMultMatrix< 50, ColMajor, ColMajor, ColMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixTransposeMultMatrix< 50, ColMajor, ColMajor, RowMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixTransposeMultMatrix< 50, ColMajor, RowMajor, ColMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixTransposeMultMatrix< 50, ColMajor, RowMajor, RowMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixTransposeMultMatrix< 50, RowMajor, ColMajor, ColMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixTransposeMultMatrix< 50, RowMajor, ColMajor, RowMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixTransposeMultMatrix< 50, RowMajor, RowMajor, ColMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | matrixTransposeMultMatrix< 50, RowMajor, RowMajor, RowMajor > | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | quaternionMultQuaternion | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | quaternionMultVector | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | quaternionMultVectorX | ) | -> Apply(CustomArguments) |
BENCHMARK | ( | quaternionToMatrix | ) | -> Apply(CustomArguments) |
BENCHMARK_MAIN | ( | ) |
|
static |
Definition at line 15 of file timings-eigen.cpp.
|
static |
Definition at line 210 of file timings-eigen.cpp.
|
static |
Definition at line 258 of file timings-eigen.cpp.
|
static |
Definition at line 224 of file timings-eigen.cpp.
PINOCCHIO_DONT_INLINE void matrixDynamicMultMatrixCall | ( | const Matrix< double, Dynamic, Dynamic, OptionM1 > & | m, |
const Matrix< double, Dynamic, Dynamic, OptionM2 > & | rhs, | ||
Matrix< double, Dynamic, Dynamic, OptionM3 > & | lhs | ||
) |
Definition at line 216 of file timings-eigen.cpp.
|
static |
Definition at line 311 of file timings-eigen.cpp.
PINOCCHIO_DONT_INLINE void matrixDynamicMultVectorCall | ( | const MatrixXd & | m, |
const MatrixXd & | rhs, | ||
MatrixXd & | lhs | ||
) |
Definition at line 307 of file timings-eigen.cpp.
|
static |
Definition at line 272 of file timings-eigen.cpp.
PINOCCHIO_DONT_INLINE void matrixDynamicTransposeMultMatrixCall | ( | const Matrix< double, Dynamic, Dynamic, OptionM1 > & | m, |
const Matrix< double, Dynamic, Dynamic, OptionM2 > & | rhs, | ||
Matrix< double, Dynamic, Dynamic, OptionM3 > & | lhs | ||
) |
Definition at line 264 of file timings-eigen.cpp.
|
static |
Definition at line 108 of file timings-eigen.cpp.
PINOCCHIO_DONT_INLINE void matrixMultMatrixCall | ( | const Matrix< double, MSIZE, MSIZE, OptionM1 > & | m, |
const Matrix< double, MSIZE, MSIZE, OptionM2 > & | rhs, | ||
Matrix< double, MSIZE, MSIZE, OptionM3 > & | lhs | ||
) |
Definition at line 100 of file timings-eigen.cpp.
|
static |
Definition at line 194 of file timings-eigen.cpp.
PINOCCHIO_DONT_INLINE void matrixMultVectorCall | ( | const Matrix< double, MSIZE, MSIZE > & | m, |
const Matrix< double, MSIZE, 1 > & | rhs, | ||
Matrix< double, MSIZE, 1 > & | lhs | ||
) |
Definition at line 186 of file timings-eigen.cpp.
|
static |
Definition at line 155 of file timings-eigen.cpp.
PINOCCHIO_DONT_INLINE void matrixTransposeMultMatrixCall | ( | const Matrix< double, MSIZE, MSIZE, OptionM1 > & | m, |
const Matrix< double, MSIZE, MSIZE, OptionM2 > & | rhs, | ||
Matrix< double, MSIZE, MSIZE, OptionM3 > & | lhs | ||
) |
Definition at line 147 of file timings-eigen.cpp.
|
static |
Definition at line 65 of file timings-eigen.cpp.
PINOCCHIO_DONT_INLINE void quaternionMultQuaternionCall | ( | const Quaterniond & | q, |
const Quaterniond & | rhs, | ||
Quaterniond & | lhs | ||
) |
Definition at line 61 of file timings-eigen.cpp.
|
static |
Definition at line 45 of file timings-eigen.cpp.
PINOCCHIO_DONT_INLINE void quaternionMultVectorCall | ( | const Quaterniond & | q, |
const Vector3d & | rhs, | ||
Vector3d & | lhs | ||
) |
Definition at line 41 of file timings-eigen.cpp.
|
static |
Definition at line 85 of file timings-eigen.cpp.
PINOCCHIO_DONT_INLINE void quaternionMultVectorXCall | ( | const Quaterniond & | q, |
const VectorXd & | rhs, | ||
VectorXd & | lhs | ||
) |
Definition at line 81 of file timings-eigen.cpp.
|
static |
Definition at line 26 of file timings-eigen.cpp.
PINOCCHIO_DONT_INLINE void quaternionToMatrixCall | ( | const Quaterniond & | q, |
Matrix3d & | m | ||
) |
Definition at line 22 of file timings-eigen.cpp.