class Imos2D(T)

Defined in:

datastructure/imos_2d.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(height, width, init_val : T = T.zero) #

[View source]

Instance Method Detail

def [](y : Int32, x : Int32) : T #

[View source]
def add(ys : Int, yc : Int, xs : Int, xc : Int, val : T) : Nil #

[View source]
def add(y : Range, x : Range, val : T) : Nil #

[View source]
def build : Array(Array(T)) #

[View source]
def height : Int32 #

[View source]
def width : Int32 #

[View source]