Using the C Math Library    

Selecting a Matrix 

Use a matrix index to select a matrix. A matrix index works just like a vector index, except the result is a matrix rather than a vector. For example, let B be the index matrix:

Then,

is

Note that the example matrix A was chosen so that
mlfIndexRef(A,"(?)", X) equals X for all types of one-dimensional indexing. This is not generally the case. For example, if A were changed to mlfAssign(&A, mlfMagic(mlfScalar(3)));

and B remains the same, then mlfIndexRef(A, "(?)", B) would equal


 Selecting a Vector Selecting the Entire Matrix As a Column Vector