array_2d_col Class Template Reference

Column of a 2d array. More...

#include <array.h>


Detailed Description

template<size_t R, size_t C, class data_t = double>
class array_2d_col< R, C, data_t >

Column of a 2d array.

This works because two-dimensional arrays are always continguous (as indicated in appendix C of Soustroup's book).

Definition at line 284 of file array.h.


Public Member Functions

 array_2d_col (data_t mat[R][C], size_t i)
 Create an object as the ith column of mat.
data_t & operator[] (size_t i)
 Array-like indexing.
const data_t & operator[] (size_t i) const
 Array-like indexing.

Protected Attributes

data_t * a
 The array pointer.

The documentation for this class was generated from the following file:

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page