MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::vec::non_fixed::dimension Struct Reference

Runtime vector dimension. More...

#include <dimension.hpp>

Public Member Functions

constexpr dimension ()
constexpr dimension (std::size_t n)
constexpr std::size_t size () const
constexpr void set_size (std::size_t n)

Static Public Attributes

static constexpr std::size_t value = 0
static constexpr bool is_fixed = false

Detailed Description

Runtime vector dimension.

Constructor & Destructor Documentation

◆ dimension() [1/2]

mtl::vec::non_fixed::dimension::dimension ( )
inlineconstexpr

◆ dimension() [2/2]

mtl::vec::non_fixed::dimension::dimension ( std::size_t n)
inlineexplicitconstexpr

Member Function Documentation

◆ set_size()

void mtl::vec::non_fixed::dimension::set_size ( std::size_t n)
inlineconstexpr

◆ size()

std::size_t mtl::vec::non_fixed::dimension::size ( ) const
inlineconstexpr

Member Data Documentation

◆ is_fixed

bool mtl::vec::non_fixed::dimension::is_fixed = false
staticconstexpr

◆ value

std::size_t mtl::vec::non_fixed::dimension::value = 0
staticconstexpr

The documentation for this struct was generated from the following file: