Skip to content

Commit 0702d52

Browse files
committed
tests for matrix splice and transpose; normalize capitalization and punctuation
1 parent 1b0ea08 commit 0702d52

File tree

2 files changed

+140
-97
lines changed

2 files changed

+140
-97
lines changed

lib/Value/Matrix.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ Usage:
892892
$B->transpose([1, 2, 3]) # will be [ [ [ 1, 3 ], [ 5, 7 ] ], [ [2 , 4 ], [ 6, 8 ] ] ]
893893
894894
$C = Matrix([ [ [ [ 1, 2 ], [ 3, 4 ] ], [ [ 5, 6 ], [ 7, 8 ] ] ], [ [ [ 9, A ], [ B, C ] ], [ [ D, E ], [ F, 0 ] ] ] ]);
895-
$C->transpose([ [ 1, 2], [3, 4] ]) # will be [ [ [ [ 1, 3 ], [ 2, 4 ] ], [ [ 9, B ], [ A, C ] ] ], [ [ [ 5, 7 ], [ 6, 8 ] ], [ [ D, F ], [ E, 0 ] ] ]
895+
$C->transpose([ [ 1, 2], [3, 4] ]) # will be [ [ [ [ 1, 3 ], [ 2, 4 ] ], [ [ 9, B ], [ A, C ] ] ], [ [ [ 5, 7 ], [ 6, 8 ] ], [ [ D, F ], [ E, 0 ] ] ] ]
896896
=cut
897897

898898
sub transpose {

0 commit comments

Comments
 (0)