autodiff/casadi/math/triangular-matrix.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2022-2023 INRIA
3 //
4 
5 #ifndef __pinocchio_autodiff_casadi_math_triangular_matrix_hpp__
6 #define __pinocchio_autodiff_casadi_math_triangular_matrix_hpp__
7 
9 
10 namespace pinocchio
11 {
12 
13  namespace internal
14  {
15  template<Eigen::UpLoType info, typename RhsMatrix, typename Scalar>
16  struct TriangularMatrixMatrixProduct<info, RhsMatrix, ::casadi::Matrix<Scalar>, true>
17  {
18  template<typename LhsMatrix, typename ResMat>
19  static void run(
20  const Eigen::MatrixBase<LhsMatrix> & lhs_mat,
21  const Eigen::MatrixBase<RhsMatrix> & rhs_vec,
22  const Eigen::MatrixBase<ResMat> & res)
23  {
24  res.const_cast_derived().col(0).noalias() = lhs_mat.derived() * rhs_vec.derived();
25  }
26  };
27 
28  template<Eigen::UpLoType info, typename RhsMatrix, typename Scalar>
29  struct TriangularMatrixMatrixProduct<info, RhsMatrix, ::casadi::Matrix<Scalar>, false>
30  {
31  template<typename LhsMatrix, typename ResMat>
32  static void run(
33  const Eigen::MatrixBase<LhsMatrix> & lhs_mat,
34  const Eigen::MatrixBase<RhsMatrix> & rhs_mat,
35  const Eigen::MatrixBase<ResMat> & res)
36  {
37  res.const_cast_derived().noalias() = lhs_mat.derived() * rhs_mat.derived();
38  }
39  };
40  } // namespace internal
41 } // namespace pinocchio
42 
43 #endif // #ifndef __pinocchio_autodiff_casadi_math_triangular_matrix_hpp__
triangular-matrix.hpp
pinocchio::res
ReturnType res
Definition: spatial/classic-acceleration.hpp:57
pinocchio::internal::TriangularMatrixMatrixProduct< info, RhsMatrix, ::casadi::Matrix< Scalar >, true >::run
static void run(const Eigen::MatrixBase< LhsMatrix > &lhs_mat, const Eigen::MatrixBase< RhsMatrix > &rhs_vec, const Eigen::MatrixBase< ResMat > &res)
Definition: autodiff/casadi/math/triangular-matrix.hpp:19
ocp.info
info
Definition: ocp.py:80
pinocchio::internal::TriangularMatrixMatrixProduct< info, RhsMatrix, ::casadi::Matrix< Scalar >, false >::run
static void run(const Eigen::MatrixBase< LhsMatrix > &lhs_mat, const Eigen::MatrixBase< RhsMatrix > &rhs_mat, const Eigen::MatrixBase< ResMat > &res)
Definition: autodiff/casadi/math/triangular-matrix.hpp:32
pinocchio::internal::TriangularMatrixMatrixProduct
Definition: math/triangular-matrix.hpp:22
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27


pinocchio
Author(s):
autogenerated on Sun Dec 22 2024 03:41:12