From d7ce529bd5b2a8175e8b88f21dc2d95809f1dcf6 Mon Sep 17 00:00:00 2001 From: Mateo Gianolio Date: Sat, 21 Jan 2017 18:52:51 +0100 Subject: [PATCH] bump version and generate new dist --- dist/vectorious.min.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/vectorious.min.js b/dist/vectorious.min.js index a173a460..138a6bbb 100644 --- a/dist/vectorious.min.js +++ b/dist/vectorious.min.js @@ -1 +1 @@ -!function t(r,e,n){function o(i,s){if(!e[i]){if(!r[i]){var h="function"==typeof require&&require;if(!s&&h)return h(i,!0);if(a)return a(i,!0);var u=new Error("Cannot find module '"+i+"'");throw u.code="MODULE_NOT_FOUND",u}var p=e[i]={exports:{}};r[i][0].call(p.exports,function(t){var e=r[i][1][t];return o(e?e:t)},p,p.exports,t,r,e,n)}return e[i].exports}for(var a="function"==typeof require&&require,i=0;i=0;e--){for(n=e+1;nthis.shape[0]-1||r>this.shape[1]-1)throw new Error("index out of bounds");return this.data[t*this.shape[1]+r]},e.prototype.set=function(t,r,e){if(t<0||r<0||t>this.shape[0]-1||r>this.shape[1]-1)throw new Error("index out of bounds");return this.data[t*this.shape[1]+r]=e,this},e.prototype.swap=function(t,r){if(t<0||r<0||t>this.shape[0]-1||r>this.shape[0]-1)throw new Error("index out of bounds");var e=this.shape[1],n=this.data.slice(t*e,(t+1)*e);return this.data.copyWithin(t*e,r*e,(r+1)*e),this.data.set(n,r*e),this},e.prototype.map=function(t){var r,n=this.shape[0],o=this.shape[1],a=new e(this),i=a.data;for(r=0;r=0;r--)this.data[r]*=t;return this},t.normalize=function(r){return new t(r).normalize()},t.prototype.normalize=function(){return this.scale(1/this.magnitude())},t.project=function(r,e){return r.project(new t(e))},t.prototype.project=function(t){return t.scale(this.dot(t)/t.dot(t))},t.fill=function(r,e,n){if(r<0)throw new Error("invalid size");if(0===r)return new t;e=e||0,n=n||Float64Array;var o,a=new n(r);for(o=0;on-r)throw new Error("invalid range");var h,u,p=new i(Math.ceil((n-r)/e));for(h=r,u=0;hthis.length-1)throw new Error("index out of bounds");return this.data[t]},t.prototype.min=function(){return this.reduce(function(t,r){return Math.min(t,r)},Number.POSITIVE_INFINITY)},t.prototype.max=function(){return this.reduce(function(t,r){return Math.max(t,r)},Number.NEGATIVE_INFINITY)},t.prototype.set=function(t,r){if(t<0||t>this.length-1)throw new Error("index out of bounds");return this.data[t]=r,this},Object.defineProperties(t.prototype,{x:e(0),y:e(1),z:e(2),w:e(3)}),t.combine=function(r,e){return new t(r).combine(e)},t.prototype.combine=function(t){if(!t.length)return this;if(!this.length)return this.data=new t.type(t.data),this.length=t.length,this.type=t.type,this;var r=this.length,e=t.length,n=this.data,o=t.data,a=new this.type(r+e);return a.set(n),a.set(o,r),this.data=a,this.length=r+e,this},t.prototype.push=function(r){return this.combine(new t([r]))},t.prototype.map=function(r){var e,n=new t(this),o=n.data;for(e=0;e0?", "+this.data[t]:this.data[t]);return r.push("]"),r.join("")},t.prototype.toArray=function(){return this.data?Array.prototype.slice.call(this.data):[]},r.exports=t;try{window.Vector=t}catch(t){}}()},{}]},{},[2,1]); \ No newline at end of file +!function t(r,e,n){function o(i,s){if(!e[i]){if(!r[i]){var h="function"==typeof require&&require;if(!s&&h)return h(i,!0);if(a)return a(i,!0);var u=new Error("Cannot find module '"+i+"'");throw u.code="MODULE_NOT_FOUND",u}var p=e[i]={exports:{}};r[i][0].call(p.exports,function(t){var e=r[i][1][t];return o(e?e:t)},p,p.exports,t,r,e,n)}return e[i].exports}for(var a="function"==typeof require&&require,i=0;i=0;e--){for(n=e+1;nthis.shape[0]-1||r>this.shape[1]-1)throw new Error("index out of bounds");return this.data[t*this.shape[1]+r]},e.prototype.set=function(t,r,e){if(t<0||r<0||t>this.shape[0]-1||r>this.shape[1]-1)throw new Error("index out of bounds");return this.data[t*this.shape[1]+r]=e,this},e.prototype.swap=function(t,r){if(t<0||r<0||t>this.shape[0]-1||r>this.shape[0]-1)throw new Error("index out of bounds");var e=this.shape[1],n=this.data.slice(t*e,(t+1)*e);return this.data.copyWithin(t*e,r*e,(r+1)*e),this.data.set(n,r*e),this},e.prototype.map=function(t){var r,n=this.shape[0],o=this.shape[1],a=n*o,i=new e(this),s=i.data;for(r=0;rn-r)throw new Error("invalid range");var h,u,p=new i(Math.ceil((n-r)/e));for(h=r,u=0;hthis.length-1)throw new Error("index out of bounds")},t.prototype.get=function(t){return this.check(t),this.data[t]},t.prototype.set=function(t,r){return this.check(t),this.data[t]=r,this},Object.defineProperties(t.prototype,{x:e(0),y:e(1),z:e(2),w:e(3)}),t.combine=function(r,e){return new t(r).combine(e)},t.prototype.combine=function(t){if(!t.length)return this;if(!this.length)return this.data=new t.type(t.data),this.length=t.length,this.type=t.type,this;var r=this.length,e=t.length,n=this.data,o=t.data,a=new this.type(r+e);return a.set(n),a.set(o,r),this.data=a,this.length=r+e,this},t.prototype.push=function(r){return this.combine(new t([r]))},t.prototype.map=function(r){var e,n=new t(this),o=n.data;for(e=0;e0?", "+this.data[t]:this.data[t]);return r.push("]"),r.join("")},t.prototype.toArray=function(){return this.data?Array.prototype.slice.call(this.data):[]},r.exports=t;try{window.Vector=t}catch(t){}}()},{}]},{},[2,1]); \ No newline at end of file diff --git a/package.json b/package.json index 0bd1df8b..5e707682 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vectorious", - "version": "4.7.0", + "version": "4.8.0", "description": "A high performance linear algebra library.", "main": "vectorious.js", "scripts": {