File: t_Matrix_std.expout

package info (click to toggle)
openturns 1.24-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 66,204 kB
  • sloc: cpp: 256,662; python: 63,381; ansic: 4,414; javascript: 406; sh: 180; xml: 164; yacc: 123; makefile: 98; lex: 55
file content (50 lines) | stat: -rw-r--r-- 3,617 bytes parent folder | download | duplicates (3)
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
test number zero : default constructor and string converter
matrix0 =  class=Matrix implementation=class=MatrixImplementation name=Unnamed rows=0 columns=0 values=[]
test number one : constructor with size, operator() and string converter
matrix1 =  class=Matrix implementation=class=MatrixImplementation name=Unnamed rows=2 columns=2 values=[1,2,3,4]
test number two : copy constructor and string converter
matrix2 =  class=Matrix implementation=class=MatrixImplementation name=Unnamed rows=2 columns=2 values=[1,2,3,4]
test number three : get dimensions methods
matrix1's nbRows =  2
matrix1's nbColumns =  2
test number four : constructor with collection method
elementsValues =  [1,2,3,4,5,6]
matrix0bis =  class=Matrix implementation=class=MatrixImplementation name=Unnamed rows=2 columns=2 values=[1,2,3,4]
test number five : assignment method
test number six : transposition method
matrix1 transposed =  class=Matrix implementation=class=MatrixImplementation name=Unnamed rows=2 columns=2 values=[1,3,2,4]
test number seven : addition method
sum1 =  class=Matrix implementation=class=MatrixImplementation name=Unnamed rows=2 columns=2 values=[2,5,5,8]
sum2 =  class=Matrix implementation=class=MatrixImplementation name=Unnamed rows=2 columns=2 values=[2,5,5,8]
sum1 equals sum2 =  True
test number eight : subtraction method
diff =  class=Matrix implementation=class=MatrixImplementation name=Unnamed rows=2 columns=2 values=[0,-1,1,0]
test number nine : matrix multiplication method
prod =  class=Matrix implementation=class=MatrixImplementation name=Unnamed rows=2 columns=2 values=[10,14,14,20]
test number ten : multiplication with a numerical point method
pt =  class=Point name=Unnamed dimension=2 values=[1,2]
ptResult =  class=Point name=Unnamed dimension=2 values=[7,10]
test number eleven : multiplication and division by a numerical scalar methods
scalprod1 =  class=Matrix implementation=class=MatrixImplementation name=Unnamed rows=2 columns=2 values=[3,6,9,12]
scalprod3 =  class=Matrix implementation=class=MatrixImplementation name=Unnamed rows=2 columns=2 values=[3,6,9,12]
scalprod1 equals scalprod3 =  True
scaldiv1 =  class=Matrix implementation=class=MatrixImplementation name=Unnamed rows=2 columns=2 values=[0.333333,0.666667,1,1.33333]
scaldiv2 =  class=Matrix implementation=class=MatrixImplementation name=Unnamed rows=2 columns=2 values=[0.333333,0.666667,1,1.33333]
scaldiv1 equals scaldiv2 =  True
test number twelve : isEmpty method
matrix1 is empty =  False
matrix5 is empty =  True
matrix6 is empty =  True
matrix0 is empty =  True
test number fourteen : multiplication with a numerical point method
pt_test =  class=Point name=Unnamed dimension=2 values=[1,2]
A =  class=Matrix implementation=class=MatrixImplementation name=Unnamed rows=2 columns=2 values=[0.5,-0.866025,0.866025,0.5]
B =  class=Matrix implementation=class=MatrixImplementation name=Unnamed rows=2 columns=2 values=[0.5,0.866025,-0.866025,0.5]
id =  class=Matrix implementation=class=MatrixImplementation name=Unnamed rows=2 columns=2 values=[1,0,0,1]
ptResult2 =  class=Point name=Unnamed dimension=2 values=[1,2]
test number fifteen : multiplication with a sample
matrix32 =  class=Matrix implementation=class=MatrixImplementation name=Unnamed rows=3 columns=2 values=[1,2,3,4,5,6]
s =  class=Sample name=Unnamed implementation=class=SampleImplementation name=Unnamed size=2 dimension=4 data=[[1,3,-1,-3],[-2,-5,3,1]]
matrix32*s =  class=Sample name=Unnamed implementation=class=SampleImplementation name=Unnamed size=3 dimension=4 data=[[-7,-17,11,1],[-8,-19,13,-1],[-9,-21,15,-3]]
[[ -1 -2 ]
 [ -3 -4 ]]