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

Compile-time fixed matrix dimensions. More...

#include <dimension.hpp>

Public Member Functions

constexpr std::size_t num_rows () const
constexpr std::size_t num_cols () const
constexpr std::size_t size () const

Static Public Attributes

static constexpr std::size_t rows = Rows
static constexpr std::size_t cols = Cols
static constexpr bool is_fixed = true

Detailed Description

template<std::size_t Rows, std::size_t Cols>
struct mtl::mat::fixed::dimensions< Rows, Cols >

Compile-time fixed matrix dimensions.

Member Function Documentation

◆ num_cols()

template<std::size_t Rows, std::size_t Cols>
std::size_t mtl::mat::fixed::dimensions< Rows, Cols >::num_cols ( ) const
inlineconstexpr

◆ num_rows()

template<std::size_t Rows, std::size_t Cols>
std::size_t mtl::mat::fixed::dimensions< Rows, Cols >::num_rows ( ) const
inlineconstexpr

◆ size()

template<std::size_t Rows, std::size_t Cols>
std::size_t mtl::mat::fixed::dimensions< Rows, Cols >::size ( ) const
inlineconstexpr

Member Data Documentation

◆ cols

template<std::size_t Rows, std::size_t Cols>
std::size_t mtl::mat::fixed::dimensions< Rows, Cols >::cols = Cols
staticconstexpr

◆ is_fixed

template<std::size_t Rows, std::size_t Cols>
bool mtl::mat::fixed::dimensions< Rows, Cols >::is_fixed = true
staticconstexpr

◆ rows

template<std::size_t Rows, std::size_t Cols>
std::size_t mtl::mat::fixed::dimensions< Rows, Cols >::rows = Rows
staticconstexpr

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