aimstil  5.0.5
til::Scalar_matrix< T > Class Template Reference

A scalar matrix. More...

#include <cathier/scalar_matrix.h>

Public Types

typedef T value_type
 

Public Member Functions

 ScalarMatrix (prec_type value)
 
value_type operator() (const numeric_array< std::size_t, 2 > &pos)
 
value_type value () const
 
value_typevalue ()
 

Detailed Description

template<typename T>
class til::Scalar_matrix< T >

A scalar matrix.

A scalar matrix is a super simple matrix. It is a diagonal matrix, whose diagonal elements are all equal.

Definition at line 16 of file scalar_matrix.h.

Member Typedef Documentation

◆ value_type

template<typename T >
typedef T til::Scalar_matrix< T >::value_type

Definition at line 19 of file scalar_matrix.h.

Member Function Documentation

◆ operator()()

template<typename T >
value_type til::Scalar_matrix< T >::operator() ( const numeric_array< std::size_t, 2 > &  pos)
inline

Definition at line 23 of file scalar_matrix.h.

◆ ScalarMatrix()

template<typename T >
til::Scalar_matrix< T >::ScalarMatrix ( prec_type  value)
inlineexplicit

Definition at line 21 of file scalar_matrix.h.

◆ value() [1/2]

template<typename T >
value_type til::Scalar_matrix< T >::value ( ) const
inline

Definition at line 28 of file scalar_matrix.h.

◆ value() [2/2]

template<typename T >
value_type& til::Scalar_matrix< T >::value ( )
inline

Definition at line 29 of file scalar_matrix.h.


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