chsvlib
chsv helper source code

◆ GetColumnDirect() [2/2]

const_pointer GetColumnDirect ( size_type  iColumn) const
protected

Retrieves a read-only pointer to contiguous elements of the specified matrix column. Neither presence of the column nor validity of the column index are validated.

Parameters
iColumnAn index of the column to be retrieved.
Returns
A read-only pointer to the first element of the column, that is a C-like array of Columns() contiguous elements.

Unlike the publicly available indexing operators, here no verification of the index is performed to gain performance. Hence, usage of the method can be unsafe.