XLL+ Class Library

mtx_ptrs<T>::operator [] const

Returns a read-only pointer to one sub-array

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

Parameters

i

Index in dimension 0

Remarks

This overloaded operator returns a read-only 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;
    ...
    a_value = m[i][j];

Example

mtx_ptrs<T> Example

Requirements

Header: plemtx.h

See Also

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