File: t_MemoizeFunction_std.expout

package info (click to toggle)
openturns 1.26-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 67,708 kB
  • sloc: cpp: 261,605; python: 67,030; ansic: 4,378; javascript: 406; sh: 185; xml: 164; makefile: 101
file content (77 lines) | stat: -rw-r--r-- 4,590 bytes parent folder | download | duplicates (2)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
default gradient=false
class=FunctionImplementation name=Unnamed description=[x,y0] evaluationImplementation=MemoizeEvaluation(class=SymbolicEvaluation name=Unnamed inputVariablesNames=[x] outputVariablesNames=[y0] formulas=[x^2]) gradientImplementation=class=SymbolicGradient name=Unnamed evaluation=class=SymbolicEvaluation name=Unnamed inputVariablesNames=[x] outputVariablesNames=[y0] formulas=[x^2] hessianImplementation=class=SymbolicHessian name=Unnamed evaluation=class=SymbolicEvaluation name=Unnamed inputVariablesNames=[x] outputVariablesNames=[y0] formulas=[x^2]
Is history enabled for f? false
input history=class=Sample name=Unnamed implementation=class=SampleImplementation name=Unnamed size=0 dimension=1 data=[]
output history=class=Sample name=Unnamed implementation=class=SampleImplementation name=Unnamed size=0 dimension=1 data=[]
Is history enabled for f? true
input history=class=Sample name=Unnamed implementation=class=SampleImplementation name=Unnamed size=4 dimension=1 data=[[0],[1],[2],[3]]
output history=class=Sample name=Unnamed implementation=class=SampleImplementation name=Unnamed size=4 dimension=1 data=[[0],[1],[4],[9]]
Is history enabled for f? true
input history=class=Sample name=Unnamed implementation=class=SampleImplementation name=Unnamed size=0 dimension=1 data=[]
output history=class=Sample name=Unnamed implementation=class=SampleImplementation name=Unnamed size=0 dimension=1 data=[]
input history=class=Sample name=Unnamed implementation=class=SampleImplementation name=Unnamed size=8 dimension=1 data=[[0],[1],[2],[3],[0],[1],[2],[3]]
output history=class=Sample name=Unnamed implementation=class=SampleImplementation name=Unnamed size=8 dimension=1 data=[[0],[1],[4],[9],[0],[1],[4],[9]]
memoized marginal=class=Function name=Unnamed implementation=class=FunctionImplementation name=Unnamed description=[x,y3,y1] evaluationImplementation=class=MarginalEvaluation evaluation=MemoizeEvaluation(class=SymbolicEvaluation name=Unnamed inputVariablesNames=[x] outputVariablesNames=[y0,y1,y2,y3,y4] formulas=[x,x^2,x^3,x^4,x^5]) indices=[3,1] gradientImplementation=class=SymbolicGradient name=Unnamed evaluation=class=SymbolicEvaluation name=Unnamed inputVariablesNames=[x] outputVariablesNames=[y3,y1] formulas=[x^4,x^2] hessianImplementation=class=SymbolicHessian name=Unnamed evaluation=class=SymbolicEvaluation name=Unnamed inputVariablesNames=[x] outputVariablesNames=[y3,y1] formulas=[x^4,x^2]
default gradient=true
     [ X0         X1         ]
 0 : [  0.608202  -1.26617   ]
 1 : [ -0.438266   1.20548   ]
 2 : [ -2.18139    0.350042  ]
 3 : [ -0.355007   1.43725   ]
 4 : [  0.810668   0.793156  ]
 5 : [ -0.470526   0.261018  ]
 6 : [ -2.29006   -1.28289   ]
 7 : [ -1.31178   -0.0907838 ]
 8 : [  0.995793  -0.139453  ]
 9 : [ -0.560206   0.44549   ]
10 : [  0.608202  -1.26617   ]
11 : [ -0.438266   1.20548   ]
12 : [ -0.355007   1.43725   ]
13 : [  0.995793  -0.139453  ]
14 : [ -0.560206   0.44549   ]
i_fail=[0,6,7,8,10,13]
X_fail=    [ X0         X1         ]
0 : [  0.608202  -1.26617   ]
1 : [ -2.29006   -1.28289   ]
2 : [ -1.31178   -0.0907838 ]
3 : [  0.995793  -0.139453  ]
4 : [  0.608202  -1.26617   ]
5 : [  0.995793  -0.139453  ]
i_fail=0 error=x1<0 at [0.608202,-1.26617]
i_fail=6 error=x1<0 at [-2.29006,-1.28289]
i_fail=7 error=x1<0 at [-1.31178,-0.0907838]
i_fail=8 error=x1<0 at [0.995793,-0.139453]
i_fail=10 error=x1<0 at [0.608202,-1.26617]
i_fail=13 error=x1<0 at [0.995793,-0.139453]
i_ok=[1,2,3,4,5,9,11,12,14]
X_ok=    [ X0        X1        ]
0 : [ -0.438266  1.20548  ]
1 : [ -2.18139   0.350042 ]
2 : [ -0.355007  1.43725  ]
3 : [  0.810668  0.793156 ]
4 : [ -0.470526  0.261018 ]
5 : [ -0.560206  0.44549  ]
6 : [ -0.438266  1.20548  ]
7 : [ -0.355007  1.43725  ]
8 : [ -0.560206  0.44549  ]
Y_ok=    [ y0        y1        y2        ]
0 : [  0.767213 -0.52832   0.238893 ]
1 : [ -1.83134  -0.763577 -2.59492  ]
2 : [  1.08224  -0.510234  0.572009 ]
3 : [  1.60382   0.642986  2.24681  ]
4 : [ -0.209508 -0.122816 -0.332323 ]
5 : [ -0.114716 -0.249566 -0.364282 ]
6 : [  0.767213 -0.52832   0.238893 ]
7 : [  1.08224  -0.510234  0.572009 ]
8 : [ -0.114716 -0.249566 -0.364282 ]
f(X_ok)=    [ y0        y1        y2        ]
0 : [  0.767213 -0.52832   0.238893 ]
1 : [ -1.83134  -0.763577 -2.59492  ]
2 : [  1.08224  -0.510234  0.572009 ]
3 : [  1.60382   0.642986  2.24681  ]
4 : [ -0.209508 -0.122816 -0.332323 ]
5 : [ -0.114716 -0.249566 -0.364282 ]
6 : [  0.767213 -0.52832   0.238893 ]
7 : [  1.08224  -0.510234  0.572009 ]
8 : [ -0.114716 -0.249566 -0.364282 ]
what=operator(Sample) partial fail