-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtsgBase1DRule.cpp
49 lines (40 loc) · 1.64 KB
/
tsgBase1DRule.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* Code Author: Miroslav Stoyanov, Mar 2013
*
* Copyright (C) 2013 Miroslav Stoyanov
*
* This file is part of
* Toolkit for Adaprive Stochastic Modeling And Non-Intrusive Approximation
* a.k.a. TASMANIAN
*
* TASMANIAN 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 3 of the License, or
* (at your option) any later version.
*
* TASMANIAN 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 TASMANIAN. If not, see <http://www.gnu.org/licenses/>
*
*/
#ifndef __TASMANIAN_SPARSE_GRID_BASE_1D_RULE_CPP
#define __TASMANIAN_SPARSE_GRID_BASE_1D_RULE_CPP
#include "tsgBase1DRule.hpp"
namespace TasGrid{
OneDRule::OneDRule(){};
OneDRule::~OneDRule(){};
int OneDRule::getMaxLevel() const{ return -1; };
int OneDRule::getNumPoints( int level ) const{ return -1; };
int OneDRule::getBasisLevel( int level ) const{ return -1; };
void OneDRule::getPoints( int level, int* &pnts ) const{};
const char * OneDRule::getDescription() const{ return "ERROR: calling the base rule class"; };
double OneDRule::getX( int point ) const{ return 0.0; };
double OneDRule::getWeight( int level, int point ) const{ return 0.0; };
double OneDRule::eval( int level, int point, double x ) const{ return 0.0; };
TypeOneDRule OneDRule::getType() const{ return rule_base; };
};
#endif