VectoriousJavaScript 多维数组库
Vectorious 是一个 JavaScript 库用来操作 N 维数组和向量。支持 Node.js 和浏览器。
示例代码:
var vectorious = require('vectorious'); var vector, matrix; vector = new vectorious.Vector(); // { values: [], length: 0 } matrix = new vectorious.Matrix(); // { rows: [] } vector = new vectorious.Vector().zeros(5); // { values: [0, 0, 0, 0, 0], length: 5 } vector = new vectorious.Vector(1, 2, 3, 4, 5); // { values: [1, 2, 3, 4, 5], length: 5 } matrix = new vectorious.Matrix(vector); // { rows: [ { values: [1, 2, 3, 4, 5], length: 5 } ] } matrix = new vectorious.Matrix().zeros(2, 2); /* { rows: [ { values: [0, 0], length: 2 }, { values: [0, 0], length: 2 } ] } */ var input = [ [1, 2], [3, 4] ]; matrix = new vectorious.Matrix(input); /* { rows: [ { values: [1, 2], length: 2 }, { values: [3, 4], length: 2 } ] } */
评论
Bolt projectPython 多维数组界面
Bolt 是一个给本地或分布式多维数组提供 Python 界面的开源库,它旨在优化数据处理性能,不管
Bolt projectPython 多维数组界面
0
Bolt projectPython 多维数组界面
Bolt是一个给本地或分布式多维数组提供Python界面的开源库,它旨在优化数据处理性能,不管数据是小型、中型还是非常非常大型的数据,它通过一个普通且熟悉的ndarray界面来完成这项任务。Bolt核
Bolt projectPython 多维数组界面
0