sub_mtx_ref Class Reference

sub_mtx_ref class More...

#include <mtx/mtx.h>

Inheritance diagram for sub_mtx_ref:

Inheritance graph
[legend]
Collaboration diagram for sub_mtx_ref:

Collaboration graph
[legend]

List of all members.

Public Types

typedef mtx_base< data_ref_holderBase
typedef index_iterator_base
< mtx_base, double > 
iterator
typedef index_iterator_base
< const mtx_base, const double > 
const_iterator
typedef colmaj_iterator_base
< double > 
colmaj_iter
typedef colmaj_iterator_base
< const double > 
const_colmaj_iter
typedef rowmaj_iterator_base
< double > 
rowmaj_iter
typedef rowmaj_iterator_base
< const double > 
const_rowmaj_iter
enum  init_policy { ZEROS, NO_INIT }
enum  storage_policy { COPY, BORROW, REFER }

Public Member Functions

 sub_mtx_ref (const mtx_specs &specs, data_holder &ref)
sub_mtx_refoperator= (const sub_mtx_ref &other)
sub_mtx_refoperator= (const mtx &other)
void swap (mtx_specs &other)
int offset_from_storage (int elem) const
const mtx_shapeshape () const
const mtx_specsspecs () const
const double & at (int i) const
double & at_nc (int i)
void apply (F func)
iterator begin_nc ()
iterator end_nc ()
const_iterator begin () const
const_iterator end () const
colmaj_iter colmaj_begin_nc ()
colmaj_iter colmaj_end_nc ()
const_colmaj_iter colmaj_begin () const
const_colmaj_iter colmaj_end () const
rowmaj_iter rowmaj_begin_nc ()
rowmaj_iter rowmaj_end_nc ()
const_rowmaj_iter rowmaj_begin () const
const_rowmaj_iter rowmaj_end () const
void clear (double x=0.0)
mtx_specs as_shape (const mtx_shape &s) const
mtx_specs as_shape (int mr, int nc) const
void select_rows (const row_index_range &rng)
void select_cols (const col_index_range &rng)
mtx_specs sub_rows (const row_index_range &rng) const
mtx_specs sub_cols (const col_index_range &rng) const
ptrdiff_t offset () const
int max_dim () const
int nelems () const
int mrows () const
int rowstride () const
int ncols () const
int colstride () const
unsigned int rowgap () const
int offset_from_start (int row, int col) const
int offset_from_start (int elem) const

Protected Member Functions

void swap (mtx_base &other)
ptrdiff_t offset_from_storage (int r, int c) const
double * address_nc (int row, int col)
const double * address (int row, int col) const
ptrdiff_t end_offset_from_storage (int r, int c) const
double * end_address_nc (int row, int col)
const double * end_address (int row, int col) const
const double * storage () const
double * storage_nc ()

Protected Attributes

data_ref_holder m_data


Detailed Description

sub_mtx_ref class

Definition at line 806 of file mtx.h.


The documentation for this class was generated from the following files:

The software described here is Copyright (c) 1998-2005, Rob Peters.
This page was generated Wed Dec 3 06:55:44 2008 by Doxygen version 1.5.5.