class

MatrixExtend::Matrix(T)

Inherits Reference < Object

TODO : use StaticArray with Pointers

Constructors

from(data : Array(Array(T))) : self
Source
identity(lines, columns) : self
Source
new(lines : Int32, columns : Int32, &)
Source
new(lines : Int32, columns : Int32, default : T = T.new(0))
Source
new(lines : Int32, columns : Int32, data : Array(Array(T)))
Source

Instance methods

*(right : Matrix(T)) : typeof(self)
Source
*(right : Number::Primitive) : typeof(self)
Source
+(right : typeof(self)) : typeof(self)
Source
==(matrix : Matrix)
Source
[](y : Int32, x : Int32)
Source
[](y : Int32)
Source
[]=(y : Int32, x : Int32, v : T)
Source
[]=(y : Int32, v : Array(T))
Source
clone
Source
columns
Source
columns=(columns : Int32)
Source
data
Source
data=(data : Array(Array(T)))
Source
each_column
Source
each_column
Source
each_line
Source
each_line
Source
flatten
Source
flatten_map!
Source
lines
Source
lines=(lines : Int32)
Source
set_column(idx : Int32, v : Array(T))
Source
set_line(idx : Int32, v : Array(T))
Source
to_a
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
transpose
Source