Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Math Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWMultiIndex

Module:  Essential Math    Group:  Math Collection classes


Does not inherit

Local Index

Members

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 DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.