umatrix_view_tlate Class Template Reference

#include <umatrix_tlate.h>

Inheritance diagram for umatrix_view_tlate:

umatrix_tlate ufmatrix

Detailed Description

template<class data_t>
class umatrix_view_tlate< data_t >

A matrix view of double-precision numbers.

Definition at line 49 of file umatrix_tlate.h.


Public Member Functions

 ~umatrix_view_tlate ()
Copy constructors
 umatrix_view_tlate (const umatrix_view_tlate &v)
 So2scllow copy constructor - create a new view of the same matrix.
umatrix_view_tlateoperator= (const umatrix_view_tlate &v)
 So2scllow copy constructor - create a new view of the same matrix.
Get and set methods
data_t * operator[] (size_t i)
 Array-like indexing.
const data_t * operator[] (size_t i) const
 Array-like indexing.
data_t & operator() (size_t i, size_t j)
 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).
data_t * get_ptr (size_t i, size_t j)
 Get pointer (with optional range-checking).
const data_t * get_const_ptr (size_t i, size_t j) const
 Get pointer (with optional range-checking).
int set (size_t i, size_t j, data_t val)
 Set (with optional range-checking).
int set_all (double val)
 Set all of the value to be the value val.
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.
Arithmetic
umatrix_view_tlate
< data_t > & 
operator+= (const umatrix_view_tlate< data_t > &x)
 operator+=
umatrix_view_tlate
< data_t > & 
operator-= (const umatrix_view_tlate< data_t > &x)
 operator-=
umatrix_view_tlate
< data_t > & 
operator+= (const data_t &y)
 operator+=
umatrix_view_tlate
< data_t > & 
operator-= (const data_t &y)
 operator-=
umatrix_view_tlate
< data_t > & 
operator *= (const data_t &y)
 operator*=

Protected Member Functions

 umatrix_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.

Member Function Documentation

size_t rows (  )  const [inline]

Method to return number of rows.

If no memory has been allocated, this will quietly return zero.

Definition at line 235 of file umatrix_tlate.h.

size_t cols (  )  const [inline]

Method to return number of columns.

If no memory has been allocated, this will quietly return zero.

Definition at line 245 of file umatrix_tlate.h.


The documentation for this class was generated from the following file:
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.