UQTk: Uncertainty Quantification Toolkit 3.1.5
func.h
Go to the documentation of this file.
1/* =====================================================================================
2
3 The UQ Toolkit (UQTk) version 3.1.5
4 Copyright (2024) NTESS
5 https://www.sandia.gov/UQToolkit/
6 https://github.com/sandialabs/UQTk
7
8 Copyright 2024 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
9 Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government
10 retains certain rights in this software.
11
12 This file is part of The UQ Toolkit (UQTk)
13
14 UQTk is open source software: you can redistribute it and/or modify
15 it under the terms of BSD 3-Clause License
16
17 UQTk is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 BSD 3 Clause License for more details.
21
22 You should have received a copy of the BSD 3 Clause License
23 along with UQTk. If not, see https://choosealicense.com/licenses/bsd-3-clause/.
24
25 Questions? Contact the UQTk Developers at https://github.com/sandialabs/UQTk/discussions
26 Sandia National Laboratories, Livermore, CA, USA
27===================================================================================== */
37
38#ifndef FUNC_H_SEEN
39#define FUNC_H_SEEN
40
41#include "Array1D.h"
42#include "Array2D.h"
43
44#include <iostream>
45#include <string.h>
46#include <stdio.h>
47#include <sstream>
48
49using namespace std; // needed for python string conversion
50
51
52
55
58
61
64
67
70
73
78
83
86
89
92
97
102
106Array2D<double> Func_PC(Array2D<double>& p, Array2D<double>& x, Array2D<double>& fixindnom, void* funcinfo);
107
112
113
116
117
118#endif /* FUNC_H_SEEN */
1D Array class for any type T
2D Array class for any type T
Stores data of any type T in a 2D array.
Definition Array2D.h:60
Array2D< double > Func_PC(Array2D< double > &p, Array2D< double > &x, Array2D< double > &fixindnom, void *funcinfo)
Legendre PC expansion for each value of .
Definition func.cpp:411
Array2D< double > Func_FracPower(Array2D< double > &p, Array2D< double > &x, Array2D< double > &fixindnom, void *funcinfo)
for and
Definition func.cpp:258
Array2D< double > Func_ExpQuad(Array2D< double > &p, Array2D< double > &x, Array2D< double > &fixindnom, void *funcinfo)
for and
Definition func.cpp:114
Array2D< double > Func_PCx(Array2D< double > &p, Array2D< double > &x, Array2D< double > &fixindnom, void *funcinfo)
Legendre PC expansion with respect to .
Definition func.cpp:368
Array2D< double > Func_Linear(Array2D< double > &p, Array2D< double > &x, Array2D< double > &fixindnom, void *funcinfo)
for and
Definition func.cpp:159
Array2D< double > Func_PCl(Array2D< double > &p, Array2D< double > &x, Array2D< double > &fixindnom, void *funcinfo)
Legendre PC expansion with 's as coefficients.
Definition func.cpp:328
Array2D< double > Func_Exp(Array2D< double > &p, Array2D< double > &x, Array2D< double > &fixindnom, void *funcinfo)
for and
Definition func.cpp:91
Array2D< double > Func_PCs(Array2D< double > &p, Array2D< double > &x, Array2D< double > &fixindnom, void *funcinfo)
Legendre PC expansion for each value of .
Definition func.cpp:456
Array2D< double > Func_BB(Array2D< double > &p, Array2D< double > &x, Array2D< double > &fixindnom, void *funcinfo)
a black-box function with a script bb.x which takes p.dat and x.dat and returns output in y....
Definition func.cpp:182
Array2D< double > Func_HT1(Array2D< double > &p, Array2D< double > &x, Array2D< double > &fixindnom, void *funcinfo)
Heat_transfer1: a custom model designed for a tutorial case of a heat conduction problem.
Definition func.cpp:206
Array2D< double > Func_Inputs(Array2D< double > &p, Array2D< double > &x, Array2D< double > &fixindnom, void *funcinfo)
for , and
Definition func.cpp:305
Array2D< double > Func_Prop(Array2D< double > &p, Array2D< double > &x, Array2D< double > &fixindnom, void *funcinfo)
for and
Definition func.cpp:45
Array2D< double > Func_Const(Array2D< double > &p, Array2D< double > &x, Array2D< double > &fixindnom, void *funcinfo)
for and
Definition func.cpp:137
Array2D< double > augment(Array2D< double > &p, Array2D< double > &fixindnom)
Augments a parameter matrix with 'fixed' columns given indices and nominal values of those.
Definition func.cpp:515
Array2D< double > Func_PropQuad(Array2D< double > &p, Array2D< double > &x, Array2D< double > &fixindnom, void *funcinfo)
for and
Definition func.cpp:68
Array2D< double > Func_ExpSketch(Array2D< double > &p, Array2D< double > &x, Array2D< double > &fixindnom, void *funcinfo)
for and
Definition func.cpp:282
Array2D< double > Func_HT2(Array2D< double > &p, Array2D< double > &x, Array2D< double > &fixindnom, void *funcinfo)
Heat_transfer2: a custom model designed for a tutorial case of a heat conduction problem.
Definition func.cpp:232