mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
[wpimath] Remove unused MatrixImpl() function (#5330)
It's an implementation detail left over from MakeMatrix().
This commit is contained in:
@@ -21,16 +21,6 @@
|
||||
namespace frc {
|
||||
namespace detail {
|
||||
|
||||
template <int Rows, int Cols, typename Matrix, typename T, typename... Ts>
|
||||
void MatrixImpl(Matrix& result, T elem, Ts... elems) {
|
||||
constexpr int count = Rows * Cols - (sizeof...(Ts) + 1);
|
||||
|
||||
result(count / Cols, count % Cols) = elem;
|
||||
if constexpr (sizeof...(Ts) > 0) {
|
||||
MatrixImpl<Rows, Cols>(result, elems...);
|
||||
}
|
||||
}
|
||||
|
||||
template <typename Matrix, typename T, typename... Ts>
|
||||
void CostMatrixImpl(Matrix& result, T elem, Ts... elems) {
|
||||
if (elem == std::numeric_limits<double>::infinity()) {
|
||||
|
||||
Reference in New Issue
Block a user