UNPKG
ndarray-blas-level2
Version:
latest (1.1.0)
1.1.0
1.0.2
1.0.1
BLAS Level 2 operations for ndarrays
github.com/scijs/ndarray-blas-level2
scijs/ndarray-blas-level2
ndarray-blas-level2
/
test
/
util
/
close-to.js
12 lines
(8 loc)
•
228 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
'use strict'
;
var
chai =
require
(
'chai'
);
var
assert = chai.
assert
;
var
ndt =
require
(
'ndarray-tests'
);
module
.
exports
= closeTo;
function
closeTo
(
a, b, tol, msg
) {
return
assert
(ndt.
approximatelyEqual
(a, b, tol), msg); }