![]() |
AlgoPlus v0.1.0
|
Class for 1-dimensional Matrix. More...
#include <mat_1d.h>
Public Types | |
| typedef T * | iterator |
| Iterator begin for Mat1d class. | |
Public Member Functions | |
| Mat1d (std::vector< T > v={}) | |
| constructor for Mat1d class | |
| Mat1d (std::initializer_list< T > il) | |
| constructor for Mat1d class with initializer list | |
| Mat1d (const T val) noexcept | |
| constructor for Mat1d class with input value | |
| Mat1d (Mat1d &mat) | |
| copy constructor for Mat1d class | |
| Mat1d & | operator= (Mat1d &mat) |
| copy constructor for Mat1d class | |
| ~Mat1d () | |
| destructor of Mat1d class | |
| size_t | size () const |
| size function | |
| T * | begin () |
| T * | end () |
| Iterator end for Mat1d class. | |
| T & | operator[] (const size_t index) |
| operator[] for Mat1d class | |
| bool | operator== (const Mat1d< T, SIZE > &mat) const |
| operator == for Mat1d class | |
| bool | operator!= (const Mat1d< T, SIZE > &mat) const |
| operator != for Mat1d class | |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const Mat1d &mat) |
| operator << for Mat1d class | |
Class for 1-dimensional Matrix.
|
inlineexplicit |
constructor for Mat1d class with initializer list
| il | the initializer list that we want to use to initialize the array |
constructor for Mat1d class with input value
| val | the value that we want all the elements of the array to have |
|
inline |
operator != for Mat1d class
| mat | the matrix to compare |
|
inline |
operator == for Mat1d class
| mat | the matrix to compare |
|
inline |
operator[] for Mat1d class
|
inline |
size function
|
friend |
operator << for Mat1d class
| mat | the matrix |