Skip to content

Commit bb4c5c9

Browse files
authored
Merge pull request #12 from DurieuxPol/feat/methods
Added matrix operations
2 parents 1781826 + c31ccd2 commit bb4c5c9

25 files changed

Lines changed: 544 additions & 467 deletions

src/Math-Matrix-Tests/PMAdditionalTest.class.st

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ here are tests that would be in Math-Tests-DHB-Numerical, if it could construct
33
44
"
55
Class {
6-
#name : #PMAdditionalTest,
7-
#superclass : #TestCase,
8-
#category : #'Math-Matrix-Tests'
6+
#name : 'PMAdditionalTest',
7+
#superclass : 'TestCase',
8+
#category : 'Math-Matrix-Tests',
9+
#package : 'Math-Matrix-Tests'
910
}
1011

11-
{ #category : #tests }
12+
{ #category : 'tests' }
1213
PMAdditionalTest >> testMatrixInversionSmall [
1314
"it is here since it uses random matrices"
1415

@@ -38,7 +39,7 @@ PMAdditionalTest >> testMatrixInversionSmall [
3839
self assert: i class equals: PMMatrix ]
3940
]
4041

41-
{ #category : #tests }
42+
{ #category : 'tests' }
4243
PMAdditionalTest >> testMatrixSquared [
4344
"this tests squared and is not in Math-Tests-Numerical since it uses random matrices"
4445

@@ -53,7 +54,7 @@ PMAdditionalTest >> testMatrixSquared [
5354
self assert: a squared class equals: PMSymmetricMatrix
5455
]
5556

56-
{ #category : #tests }
57+
{ #category : 'tests' }
5758
PMAdditionalTest >> testTensorProduct [
5859
"this tests if a tensor product of two vectors is calculated correctly"
5960

src/Math-Matrix-Tests/PMJacobiTransformationTest.class.st

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
Class {
2-
#name : #PMJacobiTransformationTest,
3-
#superclass : #TestCase,
4-
#category : #'Math-Matrix-Tests'
2+
#name : 'PMJacobiTransformationTest',
3+
#superclass : 'TestCase',
4+
#category : 'Math-Matrix-Tests',
5+
#package : 'Math-Matrix-Tests'
56
}
67

7-
{ #category : #tests }
8+
{ #category : 'tests' }
89
PMJacobiTransformationTest >> testEigenvalueOfIdentityMatrixIsOne [
910
"The eigenvalue of I is 1"
1011

@@ -17,7 +18,7 @@ PMJacobiTransformationTest >> testEigenvalueOfIdentityMatrixIsOne [
1718
self assert: jacobiTransformation evaluate equals: expected
1819
]
1920

20-
{ #category : #tests }
21+
{ #category : 'tests' }
2122
PMJacobiTransformationTest >> testEigenvectorsOfIdentityMatrixAreTheUnitVectors [
2223
"The eigenvectors of I are (1 0) and (0 1), the unit basis vectors"
2324

0 commit comments

Comments
 (0)