File: t_Tensor_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 (20 lines) | stat: -rw-r--r-- 1,549 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
test number zero : default constructor and string converter
tensor0 =  class=Tensor implementation=class=TensorImplementation name=Unnamed rows=0 columns=0 sheets=0 values=[]
test number one : constructor with size, operator() and string converter
tensor1 =  class=Tensor implementation=class=TensorImplementation name=Unnamed rows=2 columns=2 sheets=3 values=[1,2,3,4,5,6,7,8,9,10,11,12]
values = 1.000000   2.000000   3.000000   4.000000   5.000000   6.000000   7.000000   8.000000   9.000000   10.000000   11.000000   12.000000
test number two : copy constructor and string converter
tensor2 =  class=Tensor implementation=class=TensorImplementation name=Unnamed rows=2 columns=2 sheets=3 values=[1,2,3,4,5,6,7,8,9,10,11,12]
test number three : get dimensions methods
tensor1's nbRows =  2 tensor1's nbColumns =  2
tensor1's nbSheets =  3
test number four : assignment method
test number five : isEmpty method
tensor1 is empty =  False
tensor0 is empty =  True
tensor5 is empty =  True
tensor6 is empty =  True
tensor1 =  class=Tensor implementation=class=TensorImplementation name=Unnamed rows=2 columns=2 sheets=3 values=[1,2,3,4,5,6,7,8,9,10,11,12]
tensor1.getSheet(1) =  class=Matrix implementation=class=MatrixImplementation name=Unnamed rows=2 columns=2 values=[5,6,7,8]
sheet2 =  class=Matrix implementation=class=MatrixImplementation name=Unnamed rows=2 columns=2 values=[0.5,0.6,0.7,0.8]
tensor1 =  class=Tensor implementation=class=TensorImplementation name=Unnamed rows=2 columns=2 sheets=3 values=[1,2,3,4,0.5,0.6,0.7,0.8,9,10,11,12]