AFLOW
 
Loading...
Searching...
No Matches
aurostd::matrix< utype > Class Template Reference

#include <aurostd_xmatrix.h>

Public Member Functions

 matrix ()
 
 matrix (const int m)
 
 matrix (const int m, const int n)
 
 matrix (const int m, const int n, const utype &inutype)
 
 matrix (const int m, const std::vector< utype > &inutypevec)
 
 matrix (const matrix &b)
 
 ~matrix ()
 
void clear ()
 
void print ()
 
uint size () const
 
matrix< utype > transpose () const
 
std::vector< utype > & operator[] (const int i)
 
const std::vector< utype > & operator[] (const int i) const
 
const matrix< utype > & operator= (const matrix< utype > &b)
 
void push_back (const std::vector< utype > &inutypevec)
 
void pop_back ()
 
void vecvec2mat (const std::vector< std::vector< utype > > &inVV)
 
void vec2mat (const std::vector< utype > &inV)
 
void insert (const int &id, const std::vector< utype > &inV)
 
void erase (const int id)
 
void erase_col (const int id)
 

Private Member Functions

void free ()
 
void copy (const matrix &b)
 

Private Attributes

std::vector< std::vector< utype > > mat
 

Detailed Description

template<class utype>
class aurostd::matrix< utype >

Definition at line 689 of file aurostd_xmatrix.h.

Constructor & Destructor Documentation

◆ matrix() [1/6]

template<class utype>
aurostd::matrix< utype >::matrix ( )

Definition at line 8084 of file aurostd_xmatrix.cpp.

◆ matrix() [2/6]

template<class utype>
aurostd::matrix< utype >::matrix ( const int m)

Definition at line 8094 of file aurostd_xmatrix.cpp.

◆ matrix() [3/6]

template<class utype>
aurostd::matrix< utype >::matrix ( const int m,
const int n )

Definition at line 8103 of file aurostd_xmatrix.cpp.

◆ matrix() [4/6]

template<class utype>
aurostd::matrix< utype >::matrix ( const int m,
const int n,
const utype & inutype )

Definition at line 8120 of file aurostd_xmatrix.cpp.

◆ matrix() [5/6]

template<class utype>
aurostd::matrix< utype >::matrix ( const int m,
const std::vector< utype > & inutypevec )

Definition at line 8112 of file aurostd_xmatrix.cpp.

◆ matrix() [6/6]

template<class utype>
aurostd::matrix< utype >::matrix ( const matrix< utype > & b)

Definition at line 8138 of file aurostd_xmatrix.cpp.

◆ ~matrix()

template<class utype>
aurostd::matrix< utype >::~matrix ( )

Definition at line 8148 of file aurostd_xmatrix.cpp.

Member Function Documentation

◆ clear()

template<class utype>
void aurostd::matrix< utype >::clear ( )

Definition at line 8158 of file aurostd_xmatrix.cpp.

◆ print()

template<class utype>
void aurostd::matrix< utype >::print ( )

Definition at line 8205 of file aurostd_xmatrix.cpp.

◆ size()

template<class utype>
uint aurostd::matrix< utype >::size ( ) const
inlinenodiscard

Definition at line 705 of file aurostd_xmatrix.h.

◆ transpose()

template<class utype>
matrix< utype > aurostd::matrix< utype >::transpose ( ) const
nodiscard

Definition at line 8225 of file aurostd_xmatrix.cpp.

◆ operator[]() [1/2]

template<class utype>
std::vector< utype > & aurostd::matrix< utype >::operator[] ( const int i)
inline

Definition at line 710 of file aurostd_xmatrix.h.

◆ operator[]() [2/2]

template<class utype>
const std::vector< utype > & aurostd::matrix< utype >::operator[] ( const int i) const
inline

Definition at line 714 of file aurostd_xmatrix.h.

◆ operator=()

template<class utype>
const matrix< utype > & aurostd::matrix< utype >::operator= ( const matrix< utype > & b)

Definition at line 8166 of file aurostd_xmatrix.cpp.

◆ push_back()

template<class utype>
void aurostd::matrix< utype >::push_back ( const std::vector< utype > & inutypevec)
inline

Definition at line 720 of file aurostd_xmatrix.h.

◆ pop_back()

template<class utype>
void aurostd::matrix< utype >::pop_back ( )
inline

Definition at line 721 of file aurostd_xmatrix.h.

◆ vecvec2mat()

template<class utype>
void aurostd::matrix< utype >::vecvec2mat ( const std::vector< std::vector< utype > > & inVV)

Definition at line 8278 of file aurostd_xmatrix.cpp.

◆ vec2mat()

template<class utype>
void aurostd::matrix< utype >::vec2mat ( const std::vector< utype > & inV)

Definition at line 8296 of file aurostd_xmatrix.cpp.

◆ insert()

template<class utype>
void aurostd::matrix< utype >::insert ( const int & id,
const std::vector< utype > & inV )
inline

Definition at line 724 of file aurostd_xmatrix.h.

◆ erase()

template<class utype>
void aurostd::matrix< utype >::erase ( const int id)

◆ erase_col()

template<class utype>
void aurostd::matrix< utype >::erase_col ( const int id)

◆ free()

template<class utype>
void aurostd::matrix< utype >::free ( )
private

Definition at line 8179 of file aurostd_xmatrix.cpp.

◆ copy()

template<class utype>
void aurostd::matrix< utype >::copy ( const matrix< utype > & b)
private

Definition at line 8189 of file aurostd_xmatrix.cpp.

Member Data Documentation

◆ mat

template<class utype>
std::vector<std::vector<utype> > aurostd::matrix< utype >::mat
private

Definition at line 729 of file aurostd_xmatrix.h.


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