Object-oriented Scientific Computing Library: Version 0.910
Protected Member Functions | Protected Attributes
umatrix_const_view_tlate< data_t > Class Template Reference

A matrix view of double-precision numbers.

#include <umatrix_tlate.h>

Inheritance diagram for umatrix_const_view_tlate< data_t >:
umatrix_base_tlate< data_t > umatrix_tlate< data_t > umatrix_view_tlate< data_t > ufmatrix< N, M >

Detailed Description

template<class data_t>
class umatrix_const_view_tlate< data_t >

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_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

template<class data_t>
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.

template<class data_t>
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.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.