Proxy mapping to a rectangular slice of the matrix data. Implements simple assignment. More...
#include <Matrix.h>
Proxy mapping to a rectangular slice of the matrix data. Implements simple assignment.
Public Member Functions | |
| Slice (Matrix< T > &matrix, coord_type upper_left, coord_type bottom_right) | |
| Slice ()=delete | |
| ~Slice ()=default | |
| Slice (const Slice &)=delete | |
| Slice (Slice &&) noexcept=default | |
| Slice & | operator= (Slice &&) noexcept=default |
| Slice & | operator= (const Slice &right) |
| T & | operator() (size_t i, size_t j) |
| T | operator() (size_t i, size_t j) const |
| Slice & | axpy (T a, const Slice &x) |
| Slice & | axpy (T a, const CSlice &x) |
| Slice & | scal (T a) |
| Scale all elements of the slice. More... | |
| Slice & | fill (T a) |
| Fill all elements of the slice with new values. More... | |
| Slice & | operator= (const CSlice &right) |
| Slice & | operator= (const Matrix< T > &right) |
| coord_type | dimensions () const |
| size_t | rows () const |
| size_t | cols () const |
Protected Attributes | |
| Matrix< T > & | mat |
| matrix being sliced More... | |
| coord_type | upl |
| upper left corner More... | |
| coord_type | btr |
| bottom right corner More... | |
|
inline |
|
delete |
|
default |
|
delete |
|
defaultnoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Fill all elements of the slice with new values.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
defaultnoexcept |
|
inline |
|
inline |
Scale all elements of the slice.
|
protected |
bottom right corner
|
protected |
matrix being sliced
|
protected |
upper left corner