class

Logarithm::Matrix(T)

Inherits Reference < Object

Simple Matrix class for confusion matrix

Constructors

new(rows : Array(Array(T)))
Source

Instance methods

[](i : Int32, j : Int32) : T
Source
[]=(i : Int32, j : Int32, value : T)
Source
rows
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source