1.1.0 • Published 2 years ago
numes v1.1.0
numes
Install
npm i numes
or
yarn add numes
Usage
numes
dosn't require any specific class, the regular two dimensional array is good enough, e.g.
const ndarray = [[1, 2, 3], [4, 5, 6]]
const ndarray2 = [[1, 2], [3, 4]]
therefore the library approach is just a composition of functions
add(transpose(ndarray2), ndarray2)
Operations
- add sums 2+ matrices/numbers
- divide divides 2+ matrices/numbers
- dot makes a dot product of 2+ matrices
- exponent returns an exponent of a matrix
- multiply multiplies 2+ matrices/numbers
- negative returns negative values for a matrix (literally multiply by -1)
- random generates a random matrix
- reciprocal returns a matrix with reciprocal of all elements
- shape returns
{rows, cols}
of a matrix - subtract subtracts 2+ matrices/numbers
- transpose tranposes (flips) a matrix over its diagonal
1.1.0
2 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.4
4 years ago
1.0.0
4 years ago
0.1.29
4 years ago
0.1.26
4 years ago
0.1.25
4 years ago
0.1.21
4 years ago
0.1.23
4 years ago
0.1.16
4 years ago
0.1.15
4 years ago
0.1.14
4 years ago
0.1.13
4 years ago
0.1.10
4 years ago