mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
Use C++23 std::expected (#8823)
This commit is contained in:
@@ -2,16 +2,17 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include "wpi/math/linalg/DARE.hpp"
|
||||
#include "wpi/util/expected"
|
||||
#include <expected>
|
||||
|
||||
template wpi::util::expected<Eigen::Matrix<double, 4, 4>, wpi::math::DAREError>
|
||||
#include "wpi/math/linalg/DARE.hpp"
|
||||
|
||||
template std::expected<Eigen::Matrix<double, 4, 4>, wpi::math::DAREError>
|
||||
wpi::math::DARE<4, 1>(const Eigen::Matrix<double, 4, 4>& A,
|
||||
const Eigen::Matrix<double, 4, 1>& B,
|
||||
const Eigen::Matrix<double, 4, 4>& Q,
|
||||
const Eigen::Matrix<double, 1, 1>& R,
|
||||
bool checkPreconditions);
|
||||
template wpi::util::expected<Eigen::Matrix<double, 4, 4>, wpi::math::DAREError>
|
||||
template std::expected<Eigen::Matrix<double, 4, 4>, wpi::math::DAREError>
|
||||
wpi::math::DARE<4, 1>(const Eigen::Matrix<double, 4, 4>& A,
|
||||
const Eigen::Matrix<double, 4, 1>& B,
|
||||
const Eigen::Matrix<double, 4, 4>& Q,
|
||||
|
||||
Reference in New Issue
Block a user