XLL+ Class Library (7.0)

mtx_flat<T>::operator []

Returns a reference to an item in the matrix

T& operator [](
   size_t i



Index into flat array


This overloaded operator returns the value of an item in the matrix, indexed by its position in the flat array.

It is mostly useful as a way of passing data to a function which expect pointers to flat data. For example:

    ple::mtx_flat<double> m;
    rc = call_function(&m[0], ...);


Header: plemtx.h

See Also

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