diff --git a/src/apatite/linear_algebra/matrix.cr b/src/apatite/linear_algebra/matrix.cr index e16b71c..fc7d274 100644 --- a/src/apatite/linear_algebra/matrix.cr +++ b/src/apatite/linear_algebra/matrix.cr @@ -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