Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0.0 #130

Merged
merged 30 commits into from
Feb 11, 2019
Merged

5.0.0 #130

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
3e07b33
convert to typescript
mateogianolio Sep 12, 2018
1010d3a
fix conflict
mateogianolio Sep 12, 2018
b05facf
update gulp to fix vulnerability, push package-lock and move tsify to…
mateogianolio Sep 13, 2018
6593637
add types to arguments
mateogianolio Sep 29, 2018
1ff5758
fix test imports
mateogianolio Sep 29, 2018
d3a1598
move types
mateogianolio Sep 29, 2018
860f736
simplify file structure
mateogianolio Sep 29, 2018
c1f185b
cleanup
mateogianolio Sep 29, 2018
2b49ea7
more typings, improvements, bugfixes
mateogianolio Oct 2, 2018
6edde25
trying to get the build working
mateogianolio Oct 2, 2018
3c875c2
working build
mateogianolio Oct 2, 2018
3f59ab9
rm opencollective-postinstall
mateogianolio Oct 3, 2018
b07e365
fix travis
mateogianolio Oct 3, 2018
e79d9ea
update codeclimate
mateogianolio Oct 6, 2018
56ff655
bump version to 5.0.0-beta.0
mateogianolio Oct 6, 2018
d3984aa
add global to env
mateogianolio Oct 6, 2018
d2ba6f9
try to get nyc working with typescript
mateogianolio Oct 6, 2018
e00f521
Merge pull request #123 from mateogianolio/improvement/typescript
mateogianolio Oct 6, 2018
8d29a7e
Merge branch 'master' into 5.0.0
mateogianolio Feb 9, 2019
ab01643
fix #113
mateogianolio Feb 10, 2019
b42aa89
update packages
mateogianolio Feb 10, 2019
21397f4
switch from var to const/let and some cleanup
mateogianolio Feb 10, 2019
384ad00
split up spec files in two
mateogianolio Feb 10, 2019
be0ca8c
split up logical expression
mateogianolio Feb 10, 2019
9e23430
update codeclimate config
mateogianolio Feb 10, 2019
869839a
cleanup constructor
mateogianolio Feb 10, 2019
f12b843
bump to 5.0.0, run npm audit fix
mateogianolio Feb 10, 2019
5c8f182
ignore nblas module in browserify bundle
mateogianolio Feb 10, 2019
ed33c4a
generate new dist
mateogianolio Feb 10, 2019
0e0116a
fix nblas checks for browser compatibility
mateogianolio Feb 10, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 9 additions & 15 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
engines:
eslint:
version: 2
plugins:
tslint:
config: tsconfig.json
enabled: true
checks:
no-console:
enabled: false
no-undef:
enabled: false
callback-return:
enabled: false
ratings:
paths:
- "**.js"
exclude_paths:
- test/**
- dist/**
exclude_patterns:
- "src/*.spec.ts"
- "dist/"
- "examples/"
- "benchmarks/"
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
node_modules
coverage
.DS_Store
benchmarks/bigvector.js
benchmarks/bigmatrix.js
built
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ node_js:
before_install:
- sudo apt-get install libblas-dev
env:
- CXX=g++-4.8
- CC_TEST_REPORTER_ID=7bc2ff765ac0619975d32fe57959db6374d14a96780a1438ec68ea14036748e1
global:
- CXX=g++-4.8
- CC_TEST_REPORTER_ID=7bc2ff765ac0619975d32fe57959db6374d14a96780a1438ec68ea14036748e1
before_script:
- npm install -g nyc
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- nyc --reporter=lcov npm test
- npm test
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
addons:
Expand Down
68 changes: 0 additions & 68 deletions applyBlasOptimizations.js

This file was deleted.

2 changes: 1 addition & 1 deletion dist/vectorious.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/blas.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(function () {
'use strict';

var v = require('../vectorious'),
var v = require('../built'),
Matrix = v.Matrix,
BLAS = v.BLAS;
BLAS = require('nblas');

if (!BLAS)
throw new Error('no blas support!');
Expand Down
2 changes: 1 addition & 1 deletion examples/logistic-regression.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// logistic regression example based on https://github.com/junku901/dnn
'use strict';

var v = require('../vectorious'),
var v = require('../built'),
Matrix = v.Matrix,
Vector = v.Vector;

Expand Down
2 changes: 1 addition & 1 deletion examples/neural-network.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// https://iamtrask.github.io/2015/07/12/basic-python-network/
'use strict';

var Matrix = require('../vectorious').Matrix;
var Matrix = require('../built').Matrix;

function sigmoid(ddx) {
return function (x) {
Expand Down
2 changes: 1 addition & 1 deletion examples/solve.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function() {
'use strict';

var Matrix = require('../vectorious').Matrix;
var Matrix = require('../built').Matrix;

var a = Matrix.random(3, 3).scale(10),
b = Matrix.random(3, 1).scale(10);
Expand Down
2 changes: 1 addition & 1 deletion examples/text_raytracer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function (){
// Ported from Rust from https://gist.github.com/joshmarinacci/c84d0979e100d107f685 http://joshondesign.com/2014/09/17/rustlang
'use strict';
var Vector = require('../vectorious').Vector,
var Vector = require('../built').Vector,
add = Vector.add,
subtract = Vector.subtract,
scale = Vector.scale,
Expand Down
8 changes: 5 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
'use strict';

var gulp = require('gulp'),
tsify = require('tsify'),
streamify = require('gulp-streamify'),
uglify = require('gulp-uglify'),
browserify = require('browserify'),
Expand All @@ -14,12 +15,13 @@

gulp.task('build', function () {
var files = [
'vector.js',
'matrix.js'
'src/Vector.ts',
'src/Matrix.ts'
];

return browserify({ entries: files })
.transform('babelify', { presets: ['@babel/preset-env'] })
.ignore('nblas')
.plugin(tsify)
.bundle()
.pipe(source('vectorious.min.js'))
.pipe(streamify(uglify()))
Expand Down
Loading