Using the C++ Math Library    

Using Indexing in Assignment Statements

This section describes how to assign:

The examples work with matrix A.

A =

There is no functional difference between two-dimensional indexed assignment and n-dimensional indexed assignment (where N > 2). Because it is easier to understand two-dimensional arrays, most of the examples in this section deal with two-dimensional arrays. See Extending Two-Dimensional Assignment to N Dimensions to learn how to work with arrays of dimension greater than two.


 Extending Logical Indexing to N Dimensions Overview