umatrix_const_view_tlate Class Template Reference

A matrix view of double-precision numbers. More...

#include <umatrix_tlate.h>

Inheritance diagram for umatrix_const_view_tlate:

umatrix_base_tlate umatrix_tlate umatrix_view_tlate ufmatrix

Detailed Description

template<class data_t>
class umatrix_const_view_tlate< data_t >

A matrix view of double-precision numbers.

Definition at line 49 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_tlateoperator= (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.

Member Function Documentation

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 176 of file umatrix_tlate.h.

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

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page