mathjs/test-node/function/arithmetic/multiply.test.js
Harry Sarson 74ff86fd4b Store uncompressed matricies and drop dev dep on tar and on q. (#1316)
git handles compression for us so compressing the matricies we use to test
is unnessessary. Additionally, handling the compression made the
code significantly more complex and required pulling in extra packages
from npm.

This commit updates the matrix market code to use uncompressed files.
I have also replaced use of the promise libary 'q' with built in
promises.
2018-11-10 11:40:28 +01:00

25 lines
764 B
JavaScript

// test multiply
import math from '../../../src/main'
const market = require('../../../tools/matrixmarket')
describe('multiply', function () {
describe('Matrix Market', function () {
it('should multiply matrix x matrix 1220 x 1220, Matrix Market, sparse x sparse', function (done) {
// import matrix
market.import('tools/matrices/fpga_dcop_01.mtx')
.then(function (matrices) {
// matrix
const m = matrices
// multiply matrices, used to compare performance in different implementations
math.multiply(m, m)
// indicate test has completed
done()
})
.catch(function (error) {
// indicate test has completed
done(error)
})
})
})
})