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

Implicit Lotkin matrix: Hilbert with first row all 1s. More...

#include <lotkin.hpp>

Public Types

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

Public Member Functions

 lotkin (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::generators::lotkin< Value >

Implicit Lotkin matrix: Hilbert with first row all 1s.

Ill-conditioned and asymmetric.

Member Typedef Documentation

◆ const_reference

template<typename Value = double>
using mtl::generators::lotkin< Value >::const_reference = Value

◆ reference

template<typename Value = double>
using mtl::generators::lotkin< Value >::reference = Value

◆ size_type

template<typename Value = double>
using mtl::generators::lotkin< Value >::size_type = std::size_t

◆ value_type

template<typename Value = double>
using mtl::generators::lotkin< Value >::value_type = Value

Constructor & Destructor Documentation

◆ lotkin()

template<typename Value = double>
mtl::generators::lotkin< Value >::lotkin ( size_type n)
inlineexplicit

Member Function Documentation

◆ num_cols()

template<typename Value = double>
size_type mtl::generators::lotkin< Value >::num_cols ( ) const
inline

◆ num_rows()

template<typename Value = double>
size_type mtl::generators::lotkin< Value >::num_rows ( ) const
inline

◆ operator()()

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

◆ size()

template<typename Value = double>
size_type mtl::generators::lotkin< Value >::size ( ) const
inline

The documentation for this class was generated from the following file:
  • /home/runner/work/mtl5/mtl5/include/mtl/generators/lotkin.hpp