WPILibC++ 2024.3.2
EigenCore.h
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5#pragma once
6
7#include <Eigen/Core>
8
9namespace frc {
10
11template <int Size>
12using Vectord = Eigen::Vector<double, Size>;
13
14template <int Rows, int Cols,
15 int Options = Eigen::AutoAlign |
16 ((Rows == 1 && Cols != 1) ? Eigen::RowMajor
17 : (Cols == 1 && Rows != 1)
18 ? Eigen::ColMajor
19 : EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION),
20 int MaxRows = Rows, int MaxCols = Cols>
21using Matrixd = Eigen::Matrix<double, Rows, Cols, Options, MaxRows, MaxCols>;
22
23} // namespace frc
Definition: AprilTagPoseEstimator.h:15
Eigen::Matrix< double, Rows, Cols, Options, MaxRows, MaxCols > Matrixd
Definition: EigenCore.h:21
Eigen::Vector< double, Size > Vectord
Definition: EigenCore.h:12