class

SimpleMatrix(T)

Inherits Reference < Object

Constants

VERSION = "1.0.0"

Constructors

new(height : Int, width : Int, value : T = T.new(0))
Source
new(pull : JSON::PullParser)
Source
new(height : Int, width : Int, &)
Source
new(buffer : Array(Array(T)))
Source

Class methods

identity(diagonal_length : Int) : SimpleMatrix(T)
Source

Instance methods

==(other : SimpleMatrix) : Bool
Source
==(other_buffer : Array(Array(T))) : Bool
Source
apply(result_matrix : SimpleMatrix(T), &block : T, Int32, Int32 -> T) : Void
Source
apply(result_buffer : Array(Array(T)), &block : T, Int32, Int32 -> T) : Void
Source
buffer
Source
convolve(window : SimpleMatrix(T), result_matrix : SimpleMatrix(T), padding : NamedTuple(x: UInt8, y: UInt8) = {x: 0_u8, y: 0_u8}) : Void
Source
convolve(window_buffer : Array(Array(T)), result_buffer : Array(Array(T)), padding : NamedTuple(x: UInt8, y: UInt8) = {x: 0_u8, y: 0_u8}) : Void
Source
dot(other_matrix : SimpleMatrix(T), result_matrix : SimpleMatrix(T)) : Void
Source
dot(other_buffer : Array(Array(T)), result_buffer : Array(Array(T))) : Void
Source
each
Source
each_with_index
Source
height
Source
map!
Source
mul(other_matrix : SimpleMatrix(T), result_matrix : SimpleMatrix(T)) : Void
Source
mul(other_buffer : Array(Array(T)), result_buffer : Array(Array(T))) : Void
Source
mul(value : Number, result_matrix : SimpleMatrix(T)) : Void
Source
mul(value : Number, result_buffer : Array(Array(T))) : Void
Source
size
Source
sum(other_matrix : SimpleMatrix(T), result_matrix : SimpleMatrix(T)) : Void
Source
sum(other_buffer : Array(Array(T)), result_buffer : Array(Array(T))) : Void
Source
sum(value : Number, result_matrix : SimpleMatrix(T)) : Void
Source
sum(value : Number, result_buffer : Array(Array(T))) : Void
Source
to_json(json : JSON::Builder) : Void
Source
to_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>
Source
transpose(result_matrix : SimpleMatrix(T)) : Void
Source
transpose(result_buffer : Array(Array(T))) : Void
Source
width
Source