Scythe-1.0.3
Classes | Namespaces | Functions
matrix_random_access_iterator.h File Reference

Definitions of STL-compliant random access iterators for the Matrix class. More...

#include <iterator>
#include "scythestat/defs.h"
#include "scythestat/error.h"
#include "scythestat/matrix.h"
Include dependency graph for matrix_random_access_iterator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  scythe::const_matrix_random_access_iterator< T_type, ORDER, M_ORDER, M_STYLE >
 An STL-compliant const random access iterator for Matrix. More...
class  scythe::matrix_random_access_iterator< T_type, ORDER, M_ORDER, M_STYLE >
 An STL-compliant random access iterator for Matrix. More...

Namespaces

namespace  scythe
 

The Scythe library namespace.


Functions

template<class T_type , matrix_order ORDER, matrix_order M_ORDER, matrix_style STYLE>
const_matrix_random_access_iterator
< T_type, ORDER, M_ORDER,
STYLE > 
scythe::operator+ (const_matrix_random_access_iterator< T_type, ORDER, M_ORDER, STYLE > x, int n)
template<class T_type , matrix_order ORDER, matrix_order M_ORDER, matrix_style STYLE>
const_matrix_random_access_iterator
< T_type, ORDER, M_ORDER,
STYLE > 
scythe::operator+ (int n, const_matrix_random_access_iterator< T_type, ORDER, M_ORDER, STYLE > x)
template<class T_type , matrix_order ORDER, matrix_order M_ORDER, matrix_style STYLE>
const_matrix_random_access_iterator
< T_type, ORDER, M_ORDER,
STYLE > 
scythe::operator- (const_matrix_random_access_iterator< T_type, ORDER, M_ORDER, STYLE > x, int n)
template<class T_type , matrix_order ORDER, matrix_order M_ORDER, matrix_style STYLE>
matrix_random_access_iterator
< T_type, ORDER, M_ORDER,
STYLE > 
scythe::operator+ (matrix_random_access_iterator< T_type, ORDER, M_ORDER, STYLE > x, int n)
template<class T_type , matrix_order ORDER, matrix_order M_ORDER, matrix_style STYLE>
matrix_random_access_iterator
< T_type, ORDER, M_ORDER,
STYLE > 
scythe::operator+ (int n, matrix_random_access_iterator< T_type, ORDER, M_ORDER, STYLE > x)
template<class T_type , matrix_order ORDER, matrix_order M_ORDER, matrix_style STYLE>
matrix_random_access_iterator
< T_type, ORDER, M_ORDER,
STYLE > 
scythe::operator- (matrix_random_access_iterator< T_type, ORDER, M_ORDER, STYLE > x, int n)

Detailed Description

Definitions of STL-compliant random access iterators for the Matrix class.

Contains definitions of const_matrix_random_access_iterator, matrix_random_access_iterator, and related operators. See a Standard Template Library reference, such as Josuttis (1999), for a full description of the capabilities of random access iterators.

These iterators are templated on the type, order and style of the Matrix they iterate over and their own order, which need not match the iterated-over matrix. Same-order iteration over concrete matrices is extremely fast. Cross-grain concrete and/or view iteration is slower.