Add size method to Matrix
This commit is contained in:
parent
5088c9ddfa
commit
34ea337069
|
@ -1403,6 +1403,11 @@ module Apatite::LinearAlgebra
|
||||||
}
|
}
|
||||||
end
|
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.
|
# Returns an array of arrays that describe the rows of the matrix.
|
||||||
def to_a
|
def to_a
|
||||||
@rows.clone
|
@rows.clone
|
||||||
|
|
Loading…
Reference in New Issue