feat(linear-static-3d-euler-beam): step 9 - dense-math-adapters-review-fix

This commit is contained in:
KOKO\Mimi
2026-08-09 11:47:58 +09:00
parent 15b5e9916b
commit 4155267c45
3 changed files with 32 additions and 1 deletions
+5
View File
@@ -2,6 +2,7 @@
#include <gtest/gtest.h>
#include <limits>
#include <stdexcept>
#include <utility>
@@ -9,6 +10,10 @@ namespace fesa {
namespace {
TEST(DenseMath, RowMajorMatrixMatchesKnownGemvGemm) {
const std::size_t wraparoundRows =
(std::numeric_limits<std::size_t>::max)() / 2U + 1U;
EXPECT_THROW(static_cast<void>(Matrix{wraparoundRows, 2}), std::length_error);
Matrix zeroRows{0, 3};
Vector threeValues{3, 2.0};
const Vector zeroRowProduct = zeroRows.multiply(threeValues);