SimpleMatrix(T)
Inherits Reference < Object
Constants
VERSION = "1.0.0"
Constructors
new(height : Int, width : Int, value : T = T.new(0))
Sourcenew(pull : JSON::PullParser)
Sourcenew(height : Int, width : Int, &)
Sourcenew(buffer : Array(Array(T)))
SourceClass methods
Instance methods
==(other_buffer : Array(Array(T))) : Bool
Sourceapply(result_buffer : Array(Array(T)), &block : T, Int32, Int32 -> T) : Void
Sourcebuffer
Sourceconvolve(window : SimpleMatrix(T), result_matrix : SimpleMatrix(T), padding : NamedTuple(x: UInt8, y: UInt8) = {x: 0_u8, y: 0_u8}) : Void
Sourceconvolve(window_buffer : Array(Array(T)), result_buffer : Array(Array(T)), padding : NamedTuple(x: UInt8, y: UInt8) = {x: 0_u8, y: 0_u8}) : Void
Sourcedot(other_buffer : Array(Array(T)), result_buffer : Array(Array(T))) : Void
Sourceeach
Sourceeach_with_index
Sourceheight
Sourcemap!
Sourcemul(other_buffer : Array(Array(T)), result_buffer : Array(Array(T))) : Void
Sourcemul(value : Number, result_buffer : Array(Array(T))) : Void
Sourcesize
Sourcesum(other_buffer : Array(Array(T)), result_buffer : Array(Array(T))) : Void
Sourcesum(value : Number, result_buffer : Array(Array(T))) : Void
Sourceto_json(json : JSON::Builder) : Void
Sourceto_s(io : IO) : Void
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>
transpose(result_buffer : Array(Array(T))) : Void
Sourcewidth
Source