Make math::matrix::values() return util::span
This commit is contained in:
parent
62f2adcb82
commit
4b314d78c4
1 changed files with 5 additions and 5 deletions
|
|
@ -3,7 +3,7 @@
|
|||
#include <psemek/math/detail/array_2d.hpp>
|
||||
#include <psemek/math/vector.hpp>
|
||||
#include <psemek/math/math.hpp>
|
||||
#include <psemek/util/range.hpp>
|
||||
#include <psemek/util/span.hpp>
|
||||
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
|
|
@ -55,14 +55,14 @@ namespace psemek::math
|
|||
return coords[i];
|
||||
}
|
||||
|
||||
util::range<T *> values()
|
||||
util::span<T> values()
|
||||
{
|
||||
return {&coords[0][0], &coords[0][0] + rows() * columns()};
|
||||
return {&coords[0][0], rows() * columns()};
|
||||
}
|
||||
|
||||
util::range<T const *> values() const
|
||||
util::span<T const> values() const
|
||||
{
|
||||
return {&coords[0][0], &coords[0][0] + rows() * columns()};
|
||||
return {&coords[0][0], rows() * columns()};
|
||||
}
|
||||
|
||||
matrix copy() const
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue