matrix: add scalar filling constructor
This commit is contained in:
parent
ea75b102d0
commit
2ef759877e
@ -48,6 +48,12 @@ namespace util {
|
|||||||
///////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////
|
||||||
constexpr matrix () noexcept = default;
|
constexpr matrix () noexcept = default;
|
||||||
|
|
||||||
|
constexpr matrix(ValueT fill)
|
||||||
|
{
|
||||||
|
for (auto &r: values)
|
||||||
|
r = fill;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
constexpr matrix (const ValueT(&_data)[Rows][Cols]) noexcept:
|
constexpr matrix (const ValueT(&_data)[Rows][Cols]) noexcept:
|
||||||
|
Loading…
Reference in New Issue
Block a user