File tree Expand file tree Collapse file tree 2 files changed +7
-17
lines changed Expand file tree Collapse file tree 2 files changed +7
-17
lines changed Original file line number Diff line number Diff line change 8
8
#category : #' Math-Tests-Matrix'
9
9
}
10
10
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
-
22
11
{ #category : #tests }
23
12
PMAdditionalTest >> testMatrixInversionSmall [
24
13
" it is here since it uses random matrices"
Original file line number Diff line number Diff line change @@ -385,13 +385,14 @@ PMMatrixTest >> testMatrixCloseToPrecision [
385
385
386
386
{ #category : #tests }
387
387
PMMatrixTest >> testMatrixConversionWithBothDims [
388
+
388
389
| 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
395
396
]
396
397
397
398
{ #category : #comparing }
You can’t perform that action at this time.
0 commit comments