Skip to content

Commit eb3d2c2

Browse files
committed
Move one more method from Core to Matrix
1 parent 1745cc4 commit eb3d2c2

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/Math-Core/PMVector.class.st

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,6 @@ PMVector >> normalized [
253253
^ (1 / self norm) * self
254254
]
255255

256-
{ #category : #operation }
257-
PMVector >> productWithMatrix: aMatrix [
258-
"Answers the product of aMatrix with the receiver."
259-
^aMatrix rowsCollect: [ :each | each * self]
260-
]
261-
262256
{ #category : #operation }
263257
PMVector >> productWithVector: aVector [
264258
"Answers the scalar product of aVector with the receiver."

src/Math-Matrix/PMVector.extension.st

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
Extension { #name : #PMVector }
22

3+
{ #category : #'*Math-Matrix' }
4+
PMVector >> productWithMatrix: aMatrix [
5+
6+
"Answers the product of aMatrix with the receiver."
7+
8+
^ aMatrix rowsCollect: [ :each | each * self ]
9+
]
10+
311
{ #category : #'*Math-Matrix' }
412
PMVector >> reshapeWithDimensions: dimensionArray [
513

0 commit comments

Comments
 (0)