LoAdSG
coordinate.h
1/**********************************************************************************
2* Author: Christoph Pflaum, Riccarda Scherner-Griesshammer
3 * Department Informatik Lehrstuhl 10 - Systemsimulation
4 * Friedrich-Alexander Universität Erlangen-Nürnberg
5 *
6*********************************************/
7// ------------------------------------------------------------
8//
9// vector.h
10//
11// ------------------------------------------------------------
12
13#ifndef COORD_H
14#define COORD_H
15
16/*#include "../abbrevi.h"
17#include "../myAssert.h"*/
18#include "../indices/index.h"
19#include "../primes/prime.h"
20#include "../sgrid/sparseGrid.h"
21#include "extempAlg.h"
22
23//test NOW
24#include <iostream>
25using namespace std;
26
28// 1. coordinates
29// 2. Function applied to coordinates
30// 3. test Functions
32
33
35// 1. coordinates
37
38
39
40class Coordinate : public ExprSparseG<Coordinate> {
41 public:
42 Coordinate(AdaptiveSparseGrid_Base& sg, int dimension_);
43
44 //inline double getValue(double* data, const IndexDimension& I) const;
45 inline double getValue(int i, const IndexDimension& I)const {
46
47 return I.coordinate(dimension);};
48
49 ExpressionDescription getDescription() const { return ExpressionDescription(true); }
50 AdaptiveSparseGrid_Base* getSparseGrid() const { return sparseGrid; }
51 private:
52 int dimension;
53 AdaptiveSparseGrid_Base* sparseGrid;
54};
55
56
57
58
59
60#endif // COORD_H
Definition sparseGrid.h:86