Skip to content

Commit b1e3218

Browse files
Extracted an intention revealing method, meaning the private method can go.
1 parent 0ea1ce6 commit b1e3218

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/Math-Matrix/PMMatrix.class.st

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,12 @@ PMMatrix >> columnAt: anInteger [
409409
^ rows collect: [ :each | each at: anInteger ]
410410
]
411411

412+
{ #category : #'cell accessing' }
413+
PMMatrix >> columnVectorAt: col size: dimension [
414+
415+
^ (self columnAt: col) copyFrom: col to: dimension
416+
]
417+
412418
{ #category : #iterators }
413419
PMMatrix >> columnsCollect: aBlock [
414420
"Perform the collect: operation on the rows of the receiver."

src/Math-Matrix/PMQRDecomposition.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ PMQRDecomposition class >> of: matrix [
2121
{ #category : #private }
2222
PMQRDecomposition >> columnVectorFrom: r startingAt: col [
2323

24-
^ (r columnAt: col) copyFrom: col to: colSize
24+
^ r columnVectorAt: col size: colSize .
2525
]
2626

2727
{ #category : #private }

0 commit comments

Comments
 (0)