class MatrixExtend::Matrix(T)
- MatrixExtend::Matrix(T)
- Reference
- Object
Overview
TODO : use StaticArray with Pointers
Defined in:
matrix_extend/matrix.crConstructors
- .from(data : Array(Array(T))) : self
- .identity(lines, columns) : self
- .new(lines : Int32, columns : Int32, &)
- .new(lines : Int32, columns : Int32, default : T = T.new(0))
- .new(lines : Int32, columns : Int32, data : Array(Array(T)))
Instance Method Summary
- #*(right : Matrix(T)) : typeof(self)
- #*(right : Number::Primitive) : typeof(self)
- #+(right : typeof(self)) : typeof(self)
- #==(matrix : Matrix)
- #[](y : Int32, x : Int32)
- #[](y : Int32)
- #[]=(y : Int32, x : Int32, v : T)
- #[]=(y : Int32, v : Array(T))
- #clone
- #columns : Int32
- #columns=(columns : Int32)
- #data : Array(Array(T))
- #data=(data : Array(Array(T)))
- #each_column(&)
- #each_column : Array(Array(T))
- #each_line(&)
- #each_line : Array(Array(T))
- #flatten : Array(T)
- #flatten_map!(&) : typeof(self)
- #lines : Int32
- #lines=(lines : Int32)
- #set_column(idx : Int32, v : Array(T))
- #set_line(idx : Int32, v : Array(T))
- #t
- #to_a : Array(Array(T))
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #transpose : typeof(self)
Constructor Detail
Instance Method Detail
def to_s
#
Description copied from class Object
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
.