array_2d_column Class Template Reference

#include <array.h>


Detailed Description

template<size_t R, size_t C>
class array_2d_column< R, C >

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 266 of file array.h.


Public Member Functions

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

Protected Attributes

double * 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