MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::identity2D< Value > Class Template Reference

Implicit identity matrix: no storage, O(1) element access. More...

#include <identity2D.hpp>

Public Types

using value_type = Value
using size_type = std::size_t
using const_reference = Value
using reference = Value

Public Member Functions

 identity2D (size_type n)
value_type operator() (size_type r, size_type c) const
size_type num_rows () const
size_type num_cols () const
size_type size () const

Detailed Description

template<typename Value = double>
class mtl::identity2D< Value >

Implicit identity matrix: no storage, O(1) element access.

Member Typedef Documentation

◆ const_reference

template<typename Value = double>
using mtl::mat::identity2D< Value >::const_reference = Value

◆ reference

template<typename Value = double>
using mtl::mat::identity2D< Value >::reference = Value

◆ size_type

template<typename Value = double>
using mtl::mat::identity2D< Value >::size_type = std::size_t

◆ value_type

template<typename Value = double>
using mtl::mat::identity2D< Value >::value_type = Value

Constructor & Destructor Documentation

◆ identity2D()

template<typename Value = double>
mtl::mat::identity2D< Value >::identity2D ( size_type n)
inlineexplicit

Member Function Documentation

◆ num_cols()

template<typename Value = double>
size_type mtl::mat::identity2D< Value >::num_cols ( ) const
inline

◆ num_rows()

template<typename Value = double>
size_type mtl::mat::identity2D< Value >::num_rows ( ) const
inline

◆ operator()()

template<typename Value = double>
value_type mtl::mat::identity2D< Value >::operator() ( size_type r,
size_type c ) const
inline

◆ size()

template<typename Value = double>
size_type mtl::mat::identity2D< Value >::size ( ) const
inline

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