XLL+ Class Library

mtx_ptrs<T>::operator []

Returns a pointer to one sub-array

[C++]
T*& operator [](
   size_t i
);

Parameters

i

Index in dimension 0

Remarks

This overloaded operator returns a writeable pointer to one of the constituent vectors of the matrix.

This behaviour allows you to treat the matrix object like an array. For example:

    ple::mtx_ptrs<double> m;
    ...
    m[i][j] = a_value;

Requirements

Header: plemtx.h

See Also

mtx_ptrs<T> Class | mtx_ptrs<T> Methods | operator [] const | Walkthrough: Adding a matrix argument