XLL+ Class Library

mtx_flat<T>::operator []

Returns a reference to an item in the matrix

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

Parameters

i

Index into flat array

Remarks

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], ...);

Requirements

Header: plemtx.h

See Also

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