![]() |
AlgoPlus v0.1.0
|
Class for 2-dimensional Matrix. More...
#include <mat_2d.h>
Classes | |
class | Iterator |
Iterator for Mat2d class. More... | |
Public Types | |
typedef T * | iterator |
Public Member Functions | |
Mat2d (std::vector< std::vector< T > > v={}) | |
constructor for Mat2d class | |
Mat2d (const T val) noexcept | |
constructor for Mat2d class with initializer value | |
Mat2d (const Mat2d &mat) | |
copy constructor for Mat2d class | |
Mat2d & | operator= (Mat2d &mat) |
operator = for Mat2d class | |
T & | operator() (size_t i, size_t j) const |
operator (i, j) for Mat2d class | |
Mat1d< T, COLS > & | operator() (size_t i) |
operator () for Mat2d class | |
size_t | size () const |
size function | |
size_t | cols () const |
cols function | |
size_t | rows () const |
rows function | |
Iterator | begin () |
begin() Iterator for Mat2d class | |
Iterator | end () |
end() Iterator for Mat2d class | |
Friends | |
std::ostream & | operator<< (std::ostream &out, Mat2d &mat) |
operator << for Mat2d class | |
Class for 2-dimensional Matrix.
|
inlineexplicitnoexcept |
constructor for Mat2d class with initializer value
val | the value that we want all the index of the array to have |
|
inlineexplicit |
copy constructor for Mat2d class
mat | the 2d matrix we want to copy |
|
inline |
cols function
|
inline |
operator () for Mat2d class
i | index that's pointing to the row |
|
inline |
operator (i, j) for Mat2d class
i | index that's pointing to the row |
j | index that's pointing to the column |
|
inline |
rows function
|
inline |
size function