Skip to content

Commit

Permalink
サンプルのメソッドや結果が誤っていたので修正
Browse files Browse the repository at this point in the history
  • Loading branch information
universato committed Apr 24, 2021
1 parent 30acaca commit b277e87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions refm/api/src/matrix/Matrix
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ p Matrix[[2.0, 1.0], [-1.0, 2.0]].det #=> 5.0
#@samplecode
require 'matrix'
m = Matrix[[2, 6], [1, 3]]
m.rank # => 2
m.rank # => 1
#@end

--- rank_e -> Integer
Expand Down Expand Up @@ -950,7 +950,7 @@ a2 = [10, 15, 20]
a3 = [-1, -2, 1.5]
m = Matrix[a1, a2, a3]

p m.row_vectors # => [Vector[1, 10, -1], Vector[2, 15, -2], Vector[3, 20, 1.5]]
p m.column_vectors # => [Vector[1, 10, -1], Vector[2, 15, -2], Vector[3, 20, 1.5]]
#@end

--- to_a -> Array
Expand Down

0 comments on commit b277e87

Please sign in to comment.