WPILibC++ 2023.4.3
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)
20 int MaxRows = Rows, int MaxCols = Cols>
22
23} // namespace frc
#define EIGEN_DEFAULT_MATRIX_STORAGE_ORDER_OPTION
Definition: Macros.h:29
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:180
@ ColMajor
Storage order is column major (see TopicStorageOrders).
Definition: Constants.h:319
@ RowMajor
Storage order is row major (see TopicStorageOrders).
Definition: Constants.h:321
@ AutoAlign
Align the matrix itself if it is vectorizable fixed-size.
Definition: Constants.h:323
Definition: AprilTagFieldLayout.h:22
Eigen::Vector< double, Size > Vectord
Definition: EigenCore.h:12