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

Runtime matrix dimensions. More...

#include <dimension.hpp>

Public Member Functions

constexpr dimensions ()
constexpr dimensions (std::size_t r, std::size_t c)
constexpr std::size_t num_rows () const
constexpr std::size_t num_cols () const
constexpr std::size_t size () const
constexpr void set_dimensions (std::size_t r, std::size_t c)

Static Public Attributes

static constexpr bool is_fixed = false

Detailed Description

Runtime matrix dimensions.

Constructor & Destructor Documentation

◆ dimensions() [1/2]

mtl::mat::non_fixed::dimensions::dimensions ( )
inlineconstexpr

◆ dimensions() [2/2]

mtl::mat::non_fixed::dimensions::dimensions ( std::size_t r,
std::size_t c )
inlineconstexpr

Member Function Documentation

◆ num_cols()

std::size_t mtl::mat::non_fixed::dimensions::num_cols ( ) const
inlineconstexpr

◆ num_rows()

std::size_t mtl::mat::non_fixed::dimensions::num_rows ( ) const
inlineconstexpr

◆ set_dimensions()

void mtl::mat::non_fixed::dimensions::set_dimensions ( std::size_t r,
std::size_t c )
inlineconstexpr

◆ size()

std::size_t mtl::mat::non_fixed::dimensions::size ( ) const
inlineconstexpr

Member Data Documentation

◆ is_fixed

bool mtl::mat::non_fixed::dimensions::is_fixed = false
staticconstexpr

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