Linear algebra in TypeScript.
#64 Added method rowAdd(dest : number, source : number, scalar : number = 1.0 ) : Matrix
to the class Matrix
for adding a multiple of one row to another inside a matrix.
cross(vector: Vector) : Vector
to the class Vector
for calculation the cross product (3-component vectors).NDArray
super-class to Matrix
and Vector
.Changes
Changes
Changes
npm test
call to support windowswithblas
and withoutblas
entriespackage.json
Changes
map()
, reduce()
and each()
methodsfill()
take function as valuefill()
take function as valueAdd Matrix.fill(i, j, value, type)
, Matrix.binOp(a, b, op)
and Matrix.prototype.binOp(matrix, op)
(see #92, #93).
Adds a new method, Vector.binOp(a, b, op)
and Vector.prototype.binOp(vector, op)
that takes two vectors and combines them by running the binary operation function op
on all elements of the same index. Vector.binOp
returns a new Vector
, while Vector.prototype.binOp
works in-place (see #89).
Optimizes Vector.prototype.toString
by using an array instead of concatenating strings (see #87).