mini-llvm 0.1.0
Loading...
Searching...
No Matches
mini_llvm::Matrix< T > Class Template Reference

#include <Matrix.h>

Public Member Functions

constexpr Matrix ()
constexpr Matrix (size_t rows, size_t cols)
constexpr Matrix (size_t rows, size_t cols, const T &value)
constexpr Matrix (const Matrix &)=default
constexpr Matrix (Matrix &&) noexcept=default
constexpr Matrixoperator= (const Matrix &)=default
constexpr Matrixoperator= (Matrix &&) noexcept=default
constexpr size_t rows () const noexcept
constexpr size_t cols () const noexcept
constexpr size_t size () const noexcept
constexpr T * data () noexcept
constexpr const T * data () const noexcept
constexpr T & operator[] (size_t i, size_t j) noexcept
constexpr const T & operator[] (size_t i, size_t j) const noexcept
constexpr void fill (const T &value)
constexpr void resize (size_t rows, size_t cols)
constexpr void resize (size_t rows, size_t cols, const T &value)

Constructor & Destructor Documentation

◆ Matrix() [1/5]

template<typename T>
mini_llvm::Matrix< T >::Matrix ( )
inlineconstexpr

◆ Matrix() [2/5]

template<typename T>
mini_llvm::Matrix< T >::Matrix ( size_t rows,
size_t cols )
inlineconstexpr

◆ Matrix() [3/5]

template<typename T>
mini_llvm::Matrix< T >::Matrix ( size_t rows,
size_t cols,
const T & value )
inlineconstexpr

◆ Matrix() [4/5]

template<typename T>
mini_llvm::Matrix< T >::Matrix ( const Matrix< T > & )
constexprdefault

◆ Matrix() [5/5]

template<typename T>
mini_llvm::Matrix< T >::Matrix ( Matrix< T > && )
constexprdefaultnoexcept

Member Function Documentation

◆ cols()

template<typename T>
size_t mini_llvm::Matrix< T >::cols ( ) const
inlineconstexprnoexcept

◆ data() [1/2]

template<typename T>
const T * mini_llvm::Matrix< T >::data ( ) const
inlineconstexprnoexcept

◆ data() [2/2]

template<typename T>
T * mini_llvm::Matrix< T >::data ( )
inlineconstexprnoexcept

◆ fill()

template<typename T>
void mini_llvm::Matrix< T >::fill ( const T & value)
inlineconstexpr

◆ operator=() [1/2]

template<typename T>
Matrix & mini_llvm::Matrix< T >::operator= ( const Matrix< T > & )
constexprdefault

◆ operator=() [2/2]

template<typename T>
Matrix & mini_llvm::Matrix< T >::operator= ( Matrix< T > && )
constexprdefaultnoexcept

◆ operator[]() [1/2]

template<typename T>
const T & mini_llvm::Matrix< T >::operator[] ( size_t i,
size_t j ) const
inlineconstexprnoexcept

◆ operator[]() [2/2]

template<typename T>
T & mini_llvm::Matrix< T >::operator[] ( size_t i,
size_t j )
inlineconstexprnoexcept

◆ resize() [1/2]

template<typename T>
void mini_llvm::Matrix< T >::resize ( size_t rows,
size_t cols )
inlineconstexpr

◆ resize() [2/2]

template<typename T>
void mini_llvm::Matrix< T >::resize ( size_t rows,
size_t cols,
const T & value )
inlineconstexpr

◆ rows()

template<typename T>
size_t mini_llvm::Matrix< T >::rows ( ) const
inlineconstexprnoexcept

◆ size()

template<typename T>
size_t mini_llvm::Matrix< T >::size ( ) const
inlineconstexprnoexcept

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