smooth
A C++ library for Lie theory
Loading...
Searching...
No Matches
common.hpp
1// Copyright (C) 2021-2022 Petter Nilsson. MIT License.
2
3#pragma once
4
5#include <optional>
6
7#include <Eigen/Core>
8
9#include "../concepts/lie_group.hpp"
10
11SMOOTH_BEGIN_NAMESPACE
12
14template<LieGroup G>
15using OptTangent = std::optional<Eigen::Ref<Tangent<G>>>;
16
18template<LieGroup G, int K>
19using SplineJacobian = Eigen::Matrix<Scalar<G>, Dof<G>, Dof<G> == -1 ? -1 : Dof<G> *(K + 1)>;
20
22template<LieGroup G, int K>
23using OptSplineJacobian = std::optional<Eigen::Ref<SplineJacobian<G, K>>>;
24
25SMOOTH_END_NAMESPACE