![]() |
Object-oriented Scientific Computing Library: Version 0.910
|
A matrix view of double-precision numbers.
#include <umatrix_tlate.h>
Definition at line 48 of file umatrix_tlate.h.
Public Member Functions | |
Copy constructors | |
umatrix_const_view_tlate (const umatrix_const_view_tlate &v) | |
Shallow copy constructor - create a new view of the same matrix. | |
umatrix_const_view_tlate & | operator= (const umatrix_const_view_tlate &v) |
Shallow copy constructor - create a new view of the same matrix. | |
Get and set methods | |
const data_t * | operator[] (size_t i) const |
Array-like indexing. | |
const data_t & | operator() (size_t i, size_t j) const |
Array-like indexing. | |
data_t | get (size_t i, size_t j) const |
Get (with optional range-checking) | |
const data_t * | get_const_ptr (size_t i, size_t j) const |
Get pointer (with optional range-checking) | |
size_t | rows () const |
Method to return number of rows. | |
size_t | cols () const |
Method to return number of columns. | |
Other methods | |
bool | is_owner () const |
Return true if this object owns the data it refers to. | |
Protected Member Functions | |
umatrix_const_view_tlate () | |
Empty constructor provided for use by umatrix_tlate(const umatrix_tlate &v) | |
Protected Attributes | |
data_t * | data |
The data. | |
size_t | size1 |
The number of rows. | |
size_t | size2 |
The number of columns. | |
int | owner |
Zero if memory is owned elsewhere, 1 otherwise. |
size_t umatrix_const_view_tlate< data_t >::rows | ( | ) | const [inline] |
If no memory has been allocated, this will quietly return zero.
Definition at line 162 of file umatrix_tlate.h.
size_t umatrix_const_view_tlate< data_t >::cols | ( | ) | const [inline] |
If no memory has been allocated, this will quietly return zero.
Definition at line 171 of file umatrix_tlate.h.
Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).