【文件属性】:
文件名称:ndarray:javascript中的多维数组
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-29 07:33:54
JavaScript
数组
javascript中的多维数组
安装
npm install tiny-ndarray
要求
var NDArray = require('tiny-ndarray');
用法
// Create your array by passing in the size of each dimension
// Here we're creating a 3D array of size 10x20x4
var ndArray = new NDArray(10, 20, 4);
// Set values by passing in the indices, then the value
ndArray.set(1, 2, 3, 'im a value');
// Get values by passing the indices in the same way
ndArray.g
【文件预览】:
ndarray-master
----.gitignore(526B)
----package.json(625B)
----LICENSE(1KB)
----ndarray.js(3KB)
----README.md(834B)
----test()
--------tests.js(4KB)
----ndarray.es6.js(2KB)