25 lines
855 B
JavaScript

// Only use native node.js API's and references to ./lib here, this file is not transpiled!
const math = require('../../../../lib/bundleAny')
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)
})
})
})
})