From 4b314d78c4ee4613e7d60282a294859385734710 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Wed, 3 Dec 2025 15:24:48 +0300 Subject: [PATCH] Make math::matrix::values() return util::span --- libs/math/include/psemek/math/matrix.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/math/include/psemek/math/matrix.hpp b/libs/math/include/psemek/math/matrix.hpp index ecc5cfa3..15d9d032 100644 --- a/libs/math/include/psemek/math/matrix.hpp +++ b/libs/math/include/psemek/math/matrix.hpp @@ -3,7 +3,7 @@ #include #include #include -#include +#include #include #include @@ -55,14 +55,14 @@ namespace psemek::math return coords[i]; } - util::range values() + util::span values() { - return {&coords[0][0], &coords[0][0] + rows() * columns()}; + return {&coords[0][0], rows() * columns()}; } - util::range values() const + util::span values() const { - return {&coords[0][0], &coords[0][0] + rows() * columns()}; + return {&coords[0][0], rows() * columns()}; } matrix copy() const