We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c26f7f9 commit ce4457cCopy full SHA for ce4457c
sig/matrix.rbs
@@ -1,11 +1,7 @@
1
-type numeric = Integer | Float | Rational | Complex
2
-
3
-class Matrix
4
- @rows : Array[Array[numeric]]
5
- attr_reader rows: Array[Array[numeric]]
+class Matrix[unchecked out Elem]
+ @rows : Array[Array[Elem]]
6
end
7
8
-class Vector
9
- @elements : Array[numeric]
10
- attr_reader elements: Array[numeric]
+class Vector[unchecked out Elem]
+ @elements : Array[Elem]
11
0 commit comments