AFF --- A container for numbers (array) by Friederich and Forbriger.
arrayexample.cc File Reference

Demonstrate array usage. More...

#include <iostream>
#include <cmath>
#include <aff/array.h>
#include <aff/shaper.h>
#include <aff/subarray.h>
#include <aff/dump.h>
Include dependency graph for arrayexample.cc:

Go to the source code of this file.

Macros

#define ARRAYEXAMPLE_VERSION   "ARRAYEXAMPLE V1.1 Demonstrate array usage"
 

Functions

void section (const char *s, const char l='-')
 
template<class T >
std::ostream & operator<< (std::ostream &os, const aff::ConstArray< T > &a)
 
int main ()
 test array functionality More...
 

Detailed Description

Demonstrate array usage.


Author
Thomas Forbriger
Date
21/10/2016

Demonstrate array usage

Copyright (c) 2016 by Thomas Forbriger (BFO Schiltach)


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License

along with this program. If not, see http://www.gnu.org/licenses/.

REVISIONS and CHANGES

  • 21/10/2016 V1.0 Thomas Forbriger
  • 24/10/2016 V1.1 demonstrate:
    • usage of array shape query functions
    • shallow and deep copy
    • function Shaper

Definition in file arrayexample.cc.