File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 #category : #' Math-Tests-Matrix'
99}
1010
11- { #category : #tests }
12- PMAdditionalTest >> testMatrixConversionWithBothDims [
13- | vect result expected |
14- vect := #(1 0.5 0.2 3 1 -1 7 3 2 12 13 3) asPMVector .
15- result := vect reshapeWithDimensions: #(6 2) .
16-
17- expected := PMMatrix rows: #(#(1 0.5) #(0.2 3) #(1 -1) #(7 3) #(2 12) #(13 3) ).
18-
19- self assert: result equals: expected.
20- ]
21-
2211{ #category : #tests }
2312PMAdditionalTest >> testMatrixInversionSmall [
2413 " it is here since it uses random matrices"
Original file line number Diff line number Diff line change @@ -385,13 +385,14 @@ PMMatrixTest >> testMatrixCloseToPrecision [
385385
386386{ #category : #tests }
387387PMMatrixTest >> testMatrixConversionWithBothDims [
388+
388389 | vect result expected |
389- vect := #(1 0.5 0.2 3 1 -1 7 3 2 12 13 3) asPMVector .
390- result := vect reshapeWithDimensions: #(6 2) .
391-
392- expected := PMMatrix rows: #(#( 1 0.5) #(0.2 3) #(1 -1) #(7 3) #(2 12) #(13 3) ).
393-
394- self assert: result equals: expected.
390+ vect := #( 1 0.5 0.2 3 1 -1 7 3 2 12 13 3 ) asPMVector.
391+ result := vect reshapeWithDimensions: #( 6 2 ) .
392+
393+ expected := PMMatrix rows: #( #( 1 0.5 ) #( 0.2 3 ) #( 1 -1 ) #( 7 3 ) #( 2 12 ) #( 13 3 ) ).
394+
395+ self assert: result equals: expected
395396]
396397
397398{ #category : #comparing }
You can’t perform that action at this time.
0 commit comments