neoGFX
C++ GPU-oriented GUI library and app/game creation framework.
neogfx::basic_matrix< T, Rows, Columns > Class Template Reference

#include <numerical.hpp>

Classes

struct  rebind
 

Public Types

typedef T value_type
 
typedef basic_vector< T, Columns, row_vectorrow_type
 
typedef basic_vector< T, Rows, column_vectorcolumn_type
 
typedef std::array< column_type, Columns > array_type
 
typedef basic_vector< T, Columns >::input_reference_type input_reference_type
 

Public Member Functions

 basic_matrix ()
 
 basic_matrix (std::initializer_list< std::initializer_list< value_type >> aColumns)
 
 basic_matrix (const basic_matrix &other)
 
 basic_matrix (basic_matrix &&other)
 
template<typename T2 >
 basic_matrix (const basic_matrix< T2, Rows, Columns > &other)
 
basic_matrixoperator= (const basic_matrix &other)
 
basic_matrixoperator= (basic_matrix &&other)
 
std::pair< uint32_t, uint32_t > size () const
 
const column_typeoperator[] (uint32_t aColumn) const
 
column_typeoperator[] (uint32_t aColumn)
 
const value_typedata () const
 
basic_matrixoperator+= (input_reference_type value)
 
basic_matrixoperator-= (input_reference_type value)
 
basic_matrixoperator*= (input_reference_type value)
 
basic_matrixoperator/= (input_reference_type value)
 
basic_matrixoperator+= (const basic_matrix &right)
 
basic_matrixoperator-= (const basic_matrix &right)
 
basic_matrixoperator*= (const basic_matrix &right)
 
basic_matrix operator- () const
 
basic_matrix< T, Columns, Rows > transposed () const
 

Detailed Description

template<typename T, uint32_t Rows, uint32_t Columns>
class neogfx::basic_matrix< T, Rows, Columns >

Definition at line 516 of file numerical.hpp.

Member Typedef Documentation

◆ array_type

template<typename T, uint32_t Rows, uint32_t Columns>
typedef std::array<column_type, Columns> neogfx::basic_matrix< T, Rows, Columns >::array_type

Definition at line 522 of file numerical.hpp.

◆ column_type

template<typename T, uint32_t Rows, uint32_t Columns>
typedef basic_vector<T, Rows, column_vector> neogfx::basic_matrix< T, Rows, Columns >::column_type

Definition at line 521 of file numerical.hpp.

◆ input_reference_type

template<typename T, uint32_t Rows, uint32_t Columns>
typedef basic_vector<T, Columns>::input_reference_type neogfx::basic_matrix< T, Rows, Columns >::input_reference_type

Definition at line 523 of file numerical.hpp.

◆ row_type

template<typename T, uint32_t Rows, uint32_t Columns>
typedef basic_vector<T, Columns, row_vector> neogfx::basic_matrix< T, Rows, Columns >::row_type

Definition at line 520 of file numerical.hpp.

◆ value_type

template<typename T, uint32_t Rows, uint32_t Columns>
typedef T neogfx::basic_matrix< T, Rows, Columns >::value_type

Definition at line 519 of file numerical.hpp.

Constructor & Destructor Documentation

◆ basic_matrix() [1/5]

template<typename T, uint32_t Rows, uint32_t Columns>
neogfx::basic_matrix< T, Rows, Columns >::basic_matrix ( )
inline

Definition at line 528 of file numerical.hpp.

◆ basic_matrix() [2/5]

template<typename T, uint32_t Rows, uint32_t Columns>
neogfx::basic_matrix< T, Rows, Columns >::basic_matrix ( std::initializer_list< std::initializer_list< value_type >>  aColumns)
inline

Definition at line 529 of file numerical.hpp.

◆ basic_matrix() [3/5]

template<typename T, uint32_t Rows, uint32_t Columns>
neogfx::basic_matrix< T, Rows, Columns >::basic_matrix ( const basic_matrix< T, Rows, Columns > &  other)
inline

Definition at line 530 of file numerical.hpp.

◆ basic_matrix() [4/5]

template<typename T, uint32_t Rows, uint32_t Columns>
neogfx::basic_matrix< T, Rows, Columns >::basic_matrix ( basic_matrix< T, Rows, Columns > &&  other)
inline

Definition at line 531 of file numerical.hpp.

◆ basic_matrix() [5/5]

template<typename T, uint32_t Rows, uint32_t Columns>
template<typename T2 >
neogfx::basic_matrix< T, Rows, Columns >::basic_matrix ( const basic_matrix< T2, Rows, Columns > &  other)
inline

Definition at line 533 of file numerical.hpp.

Member Function Documentation

◆ data()

template<typename T, uint32_t Rows, uint32_t Columns>
const value_type* neogfx::basic_matrix< T, Rows, Columns >::data ( ) const
inline

Definition at line 545 of file numerical.hpp.

◆ operator*=() [1/2]

template<typename T, uint32_t Rows, uint32_t Columns>
basic_matrix& neogfx::basic_matrix< T, Rows, Columns >::operator*= ( input_reference_type  value)
inline

Definition at line 549 of file numerical.hpp.

◆ operator*=() [2/2]

template<typename T, uint32_t Rows, uint32_t Columns>
basic_matrix& neogfx::basic_matrix< T, Rows, Columns >::operator*= ( const basic_matrix< T, Rows, Columns > &  right)
inline

Definition at line 553 of file numerical.hpp.

◆ operator+=() [1/2]

template<typename T, uint32_t Rows, uint32_t Columns>
basic_matrix& neogfx::basic_matrix< T, Rows, Columns >::operator+= ( input_reference_type  value)
inline

Definition at line 547 of file numerical.hpp.

◆ operator+=() [2/2]

template<typename T, uint32_t Rows, uint32_t Columns>
basic_matrix& neogfx::basic_matrix< T, Rows, Columns >::operator+= ( const basic_matrix< T, Rows, Columns > &  right)
inline

Definition at line 551 of file numerical.hpp.

◆ operator-()

template<typename T, uint32_t Rows, uint32_t Columns>
basic_matrix neogfx::basic_matrix< T, Rows, Columns >::operator- ( ) const
inline

Definition at line 563 of file numerical.hpp.

◆ operator-=() [1/2]

template<typename T, uint32_t Rows, uint32_t Columns>
basic_matrix& neogfx::basic_matrix< T, Rows, Columns >::operator-= ( input_reference_type  value)
inline

Definition at line 548 of file numerical.hpp.

◆ operator-=() [2/2]

template<typename T, uint32_t Rows, uint32_t Columns>
basic_matrix& neogfx::basic_matrix< T, Rows, Columns >::operator-= ( const basic_matrix< T, Rows, Columns > &  right)
inline

Definition at line 552 of file numerical.hpp.

◆ operator/=()

template<typename T, uint32_t Rows, uint32_t Columns>
basic_matrix& neogfx::basic_matrix< T, Rows, Columns >::operator/= ( input_reference_type  value)
inline

Definition at line 550 of file numerical.hpp.

◆ operator=() [1/2]

template<typename T, uint32_t Rows, uint32_t Columns>
basic_matrix& neogfx::basic_matrix< T, Rows, Columns >::operator= ( const basic_matrix< T, Rows, Columns > &  other)
inline

Definition at line 539 of file numerical.hpp.

◆ operator=() [2/2]

template<typename T, uint32_t Rows, uint32_t Columns>
basic_matrix& neogfx::basic_matrix< T, Rows, Columns >::operator= ( basic_matrix< T, Rows, Columns > &&  other)
inline

Definition at line 540 of file numerical.hpp.

◆ operator[]() [1/2]

template<typename T, uint32_t Rows, uint32_t Columns>
const column_type& neogfx::basic_matrix< T, Rows, Columns >::operator[] ( uint32_t  aColumn) const
inline

Definition at line 543 of file numerical.hpp.

◆ operator[]() [2/2]

template<typename T, uint32_t Rows, uint32_t Columns>
column_type& neogfx::basic_matrix< T, Rows, Columns >::operator[] ( uint32_t  aColumn)
inline

Definition at line 544 of file numerical.hpp.

◆ size()

template<typename T, uint32_t Rows, uint32_t Columns>
std::pair<uint32_t, uint32_t> neogfx::basic_matrix< T, Rows, Columns >::size ( ) const
inline

Definition at line 542 of file numerical.hpp.

◆ transposed()

template<typename T, uint32_t Rows, uint32_t Columns>
basic_matrix<T, Columns, Rows> neogfx::basic_matrix< T, Rows, Columns >::transposed ( ) const
inline

Definition at line 571 of file numerical.hpp.


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