Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

numjs

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

numjs - npm Package Compare versions

Comparing version 0.11.1 to 0.11.2

src/buffer-dom.js

2

bower.json
{
"name": "numjs",
"version": "0.11.1",
"version": "0.11.2",
"description": "Like NumPy, in JavaScript",

@@ -5,0 +5,0 @@ "main": "dist/numjs.min.js",

@@ -17,3 +17,5 @@ 'use strict';

full: {
src: ['test/mocha/**/*.spec.js']
src: [
'test/mocha/**/*.spec.js'
]
}

@@ -44,3 +46,3 @@ },

options: {
frameworks: ['jasmine'],
frameworks: ['mocha', 'chai'],
reporters: ['dots'],

@@ -106,5 +108,5 @@ // web server port

grunt.registerTask('mocha', ['simplemocha:full']);
grunt.registerTask('test', ['jshint', 'simplemocha:full', 'browserify', 'karma:dist', 'uglify', 'karma:min' ]);
grunt.registerTask('test', ['jshint', 'simplemocha:full', 'browserify', 'karma:dist', 'uglify', 'karma:min']);
grunt.registerTask('travis', ['jshint', 'simplemocha:full', 'karma:dist', 'karma:min' ]);
grunt.registerTask('doc', ['jsdoc', 'gh-pages']);
};
{
"name": "numjs",
"version": "0.11.1",
"version": "0.11.2",
"description": "Like NumPy, in JavaScript",

@@ -21,2 +21,3 @@ "main": "src/index.js",

"browserify-shim": "^3.8.12",
"chai": "^3.5.0",
"expect.js": "^0.3.1",

@@ -37,3 +38,5 @@ "grunt": "^0.4.5",

"karma-browserify": "^5.0.1",
"karma-chai": "^0.1.0",
"karma-jasmine": "^0.3.5",
"karma-mocha": "^0.2.2",
"karma-mocha-reporter": "latest",

@@ -43,3 +46,3 @@ "karma-phantomjs-launcher": "^0.1.4",

"mocha": "^2.3.4",
"phantomjs": "^1.9.7-15"
"phantomjs": "^2.1.1"
},

@@ -80,3 +83,4 @@ "scripts": {

"./src/images/read.js": "./src/images/read-dom.js",
"./src/images/save.js": "./src/images/save-dom.js"
"./src/images/save.js": "./src/images/save-dom.js",
"buffer": "./src/buffer-dom.js"
},

@@ -83,0 +87,0 @@ "browserify-shim": {},

@@ -70,3 +70,3 @@ [![Build Status](https://travis-ci.org/nicolaspanel/numjs.png)](https://travis-ci.org/nicolaspanel/numjs) [![npm version](https://badge.fury.io/js/numjs.svg)](https://badge.fury.io/js/numjs) [![Bower version](https://badge.fury.io/bo/numjs.svg)](https://badge.fury.io/bo/numjs) [![Built with Grunt](https://cdn.gruntjs.com/builtwith.svg)](http://gruntjs.com/)

[ 0, 0, 0]])
> nj.ones([2,3,4], nj.dtypes.int32) // dtype can also be specified
> nj.ones([2,3,4], 'int32') // dtype can also be specified
array([[[ 1, 1, 1, 1],

@@ -95,3 +95,3 @@ [ 1, 1, 1, 1],

> nj.arange(1, 5, nj.dtypes.uint8);
> nj.arange(1, 5, 'uint8');
array([ 1, 2, 3, 4], dtype=uint8)

@@ -98,0 +98,0 @@ ```

@@ -259,18 +259,12 @@ 'use strict';

if (arguments.length === 1){
stop = start;
start = 0;
step = 1;
return arange(0, start, 1, undefined);
}
else if (arguments.length === 2 && _.isNumber(stop)){
step = 1;
return arange(start, stop, 1, undefined);
}
else if (arguments.length === 2){
dtype = stop;
stop = start;
start = 0;
step = 1;
return arange(0, start, 1, stop);
}
else if (arguments.length === 3 && !_.isNumber(step)){
dtype = step;
step = 1;
return arange(start, stop, 1, step);
}

@@ -354,3 +348,3 @@ var result = [], i=0;

else {
shape = arguments;
shape = [].slice.call(arguments);
}

@@ -733,12 +727,12 @@ var s = _.shapeSize(shape);

ifft: ifft,
int8: function (array) { return NdArray.new(array, DTYPES.int8); },
uint8: function (array) { return NdArray.new(array, DTYPES.uint8); },
int16: function (array) { return NdArray.new(array, DTYPES.int16); },
uint16: function (array) { return NdArray.new(array, DTYPES.uint16); },
int32: function (array) { return NdArray.new(array, DTYPES.int32); },
uint32: function (array) { return NdArray.new(array, DTYPES.uint32); },
float32: function (array) { return NdArray.new(array, DTYPES.float32); },
float64: function (array) { return NdArray.new(array, DTYPES.float64); },
int8: function (array) { return NdArray.new(array, 'int8'); },
uint8: function (array) { return NdArray.new(array, 'uint8'); },
int16: function (array) { return NdArray.new(array, 'int16'); },
uint16: function (array) { return NdArray.new(array, 'uint16'); },
int32: function (array) { return NdArray.new(array, 'int32'); },
uint32: function (array) { return NdArray.new(array, 'uint32'); },
float32: function (array) { return NdArray.new(array, 'float32'); },
float64: function (array) { return NdArray.new(array, 'float64'); },
images: require('./images')
};

@@ -252,3 +252,3 @@ 'use strict';

if (arguments.length > 1){
shape = arguments;
shape = [].slice.call(arguments);
}

@@ -660,2 +660,5 @@ if (this.size !== _.shapeSize(shape)){

var s = this.selection;
if (typeof s.data.slice === 'undefined'){
return new NdArray(ndarray([].slice.apply(s.data), s.shape, s.stride, s.offset)); // for legacy browsers
}
return new NdArray(ndarray(s.data.slice(), s.shape, s.stride, s.offset));

@@ -662,0 +665,0 @@ };

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc