Add size method to Matrix

This commit is contained in:
Chris Watson 2019-08-23 18:47:47 -07:00
parent 5088c9ddfa
commit 34ea337069
1 changed files with 5 additions and 0 deletions

View File

@ -1403,6 +1403,11 @@ module Apatite::LinearAlgebra
}
end
# Return the row and column size as a `Tuple(Int32, Int32)`
def size
{row_count, column_count}
end
# Returns an array of arrays that describe the rows of the matrix.
def to_a
@rows.clone