# HG changeset patch # User Carnë Draug # Date 1470957551 -3600 # Node ID 91c5442ea9fd80f42bbf2253b23b2ceecded0025 # Parent 1c840b2fd33700cd90f19618f5bdb9be03159262 doc: doxygen explaining Array. diff -r 1c840b2fd337 -r 91c5442ea9fd liboctave/array/Array.h --- a/liboctave/array/Array.h Thu Aug 11 15:49:06 2016 -0700 +++ b/liboctave/array/Array.h Fri Aug 12 00:19:11 2016 +0100 @@ -43,7 +43,72 @@ #include "quit.h" #include "oct-refcount.h" -//! Handles the reference counting for all the derived classes. +//! N Dimensional Array with copy-on-write semantics. +/*! + The Array class is at the root of Octave. It provides a container + with an arbitrary number of dimensions. The operator () provides + access to individual elements via subscript and linear indexing. + Indexing starts at 1, and arrays are column-major order as in Fortran. + + @code{.cc} + // 3 D Array with 10 rows, 20 columns, and 5 pages, filled with 7.0 + Array A Array with only 2 dimensions + - ComplexMatrix: Array> with only 2 dimensions + - boolNDArray: N dimensional Array + - ColumnVector: Array with 1 column + - string_vector: Array with 1 column + - Cell: Array, equivalent to an Octave cell. + +*/ template class Array