Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWMultiIndex



Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Synopsis

#include <rw/math/mtharray.h>    /* Any array class will do */
for(RWMultiIndex i(n); i; ++i) { ... }   // n is an IntVec

Description

Class RWMultiIndex is an n-dimensional index class. It is a tool for traversing arrays of arbitrary dimension. As shown in the Example below, you can use RWMultiIndex to help you write subroutines that operate on arrays of arbitrary dimension. Using automatic type conversion, you can then call these subroutines with vectors, matrices, or arrays. For instance, you can use the Example subroutine as follows:

Example

Public Constructor

RWMultiIndex(const RWGenMat<int>& n);

Public Member Operators

void      operator++()
operator void*()


Previous fileTop of DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.