slice Class Reference

Represents a one dimensional sub-array of a matrix. More...

#include <mtx/mtx.h>

Collaboration diagram for slice:

Collaboration graph

List of all members.

Public Member Functions

double operator[] (int i) const
int nelems () const
slice operator() (const index_range &rng) const
void print (std::ostream &s) const
 Print the slice to the given stream.
void print_stdout () const
 Print the slice to stdout.
mtx_iter begin_nc ()
mtx_iter end_nc ()
mtx_const_iter begin () const
mtx_const_iter end () const
double sum () const
double min () const
double max () const
double mean () const
mtx get_sort_order () const
bool operator== (const slice &other) const
bool operator!= (const slice &other) const
template<class F>
void apply (F func)
void sort ()
void reorder (const mtx &index)
void operator+= (double val)
void operator-= (double val)
void operator*= (double factor)
void operator/= (double div)
sliceoperator+= (const slice &other)
sliceoperator-= (const slice &other)
sliceoperator= (double val)
 All entries in this slice get the specified value.
sliceoperator= (const slice &other)
 This is assignment of value, not reference.
sliceoperator= (const mtx &other)
 This is assignment of value, not reference.


class mtx

Detailed Description

Represents a one dimensional sub-array of a matrix.

Definition at line 239 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:43 2008 by Doxygen version 1.5.5.