1.1.0 • Published 3 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
3 years ago
1.0.15
5 years ago
1.0.14
5 years ago
1.0.11
5 years ago
1.0.10
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.4
5 years ago
1.0.0
5 years ago
0.1.29
5 years ago
0.1.26
5 years ago
0.1.25
5 years ago
0.1.21
5 years ago
0.1.23
5 years ago
0.1.16
5 years ago
0.1.15
5 years ago
0.1.14
5 years ago
0.1.13
5 years ago
0.1.10
5 years ago