ml-matrix 6.8.1 → 6.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/matrix.js +1 -0
- package/package.json +1 -1
- package/src/matrix.js +1 -0
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ C.mod(2); // => C = Cinit % 2
|
|
|
76
76
|
|
|
77
77
|
// Standard Math operations : (abs, cos, round, etc.)
|
|
78
78
|
var A = new Matrix([[1, 1], [-1, -1]]);
|
|
79
|
-
var
|
|
79
|
+
var exponential = Matrix.exp(A); // exponential = Matrix [[Math.exp(1), Math.exp(1)], [Math.exp(-1), Math.exp(-1)], rows: 2, columns: 2].
|
|
80
80
|
var cosinus = Matrix.cos(A); // cosinus = Matrix [[Math.cos(1), Math.cos(1)], [Math.cos(-1), Math.cos(-1)], rows: 2, columns: 2].
|
|
81
81
|
var absolute = Matrix.abs(A); // expon = absolute [[1, 1], [1, 1], rows: 2, columns: 2].
|
|
82
82
|
// you can use 'abs', 'acos', 'acosh', 'asin', 'asinh', 'atan', 'atanh', 'cbrt', 'ceil', 'clz32', 'cos', 'cosh', 'exp', 'expm1', 'floor', 'fround', 'log', 'log1p', 'log10', 'log2', 'round', 'sign', 'sin', 'sinh', 'sqrt', 'tan', 'tanh', 'trunc'
|
package/matrix.js
CHANGED
package/package.json
CHANGED