文件名称:matrix:用于Crystal编程语言的Matrix类
文件大小:12KB
文件格式:ZIP
更新时间:2024-05-25 13:52:45
Crystal
矩阵 这是的Matrix类。 有几种创建矩阵的方法: # Creates a Matrix of Int32 with 3 rows and 2 columns. A Tuple of rows can also # be used instead of an array. Each row must have the same number of elements. Matrix .rows([[ 1 , 2 ], [ 3 , 4 ], [ 5 , 6 ]]) # 1, 2 # 3, 4 # 5, 6 # Creates a Matrix with 2 rows and 3 columns. Like with Matrix.rows, the columns # must have the same number of elements. Matrix .columns([[
【文件预览】:
matrix-master
----.travis.yml(38B)
----shard.yml(66B)
----src()
--------matrix.cr(25KB)
----spec()
--------matrix_spec.cr(25KB)
----LICENSE.md(1KB)
----README.md(1KB)