File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -270,9 +270,9 @@ PMMatrix >> atAllPut: element [
270
270
]
271
271
272
272
{ #category : #' cell accessing' }
273
- PMMatrix >> atColumn: anInteger [
273
+ PMMatrix >> atColumn: aColumnNumber [
274
274
275
- ^ self columnAt: anInteger
275
+ ^ self columnAt: aColumnNumber
276
276
]
277
277
278
278
{ #category : #' cell accessing' }
@@ -311,6 +311,12 @@ PMMatrix >> atColumn: aColumnNumber put: aCollection startingAt: rowNumber [
311
311
312
312
]
313
313
314
+ { #category : #' cell accessing' }
315
+ PMMatrix >> atRow: aRowNumber [
316
+ " answers the aRowNumber-th row in the receiver"
317
+ ^ self rowAt: aRowNumber
318
+ ]
319
+
314
320
{ #category : #' cell accessing' }
315
321
PMMatrix >> atRow: rowIndex put: aCollection [
316
322
Original file line number Diff line number Diff line change @@ -48,6 +48,16 @@ PMMatrixTest >> testAtColumnPutRepeat [
48
48
self assert: a equals: (PMMatrix rows: #(#(1 nil nil) #(1 nil nil) #(nil nil nil) )).
49
49
]
50
50
51
+ { #category : #tests }
52
+ PMMatrixTest >> testAtRow [
53
+
54
+ | a |
55
+ a := PMMatrix rows: #(#(1 2 3) #(2 3 4) ).
56
+
57
+ self assert: (a atRow: 2 ) equals: (#(2 3 4) asPMVector).
58
+ self assert: (a atRow: 1 ) equals: (#(1 2 3) asPMVector).
59
+ ]
60
+
51
61
{ #category : #' linear algebra' }
52
62
PMMatrixTest >> testAtRowPutAtColumnPut [
53
63
| a |
You can’t perform that action at this time.
0 commit comments