Repository
Current version released
3 years ago
Dependencies
std
Versions
num – A Package like numpy for Deno
example
File: matrix1.ts
import { M } from '../mod.ts'
let a = [[1,2],[3,4]]
let at = M.transpose(a)
console.log('a=', a)
console.log('at=', at)
console.log('dot(a, at)=', M.dot(a, at))
run
$ deno run matrix1.ts
Check file:///C:/ccc/course/sa/js/package/num/example/matrix1.ts
a= [ [ 1, 2 ], [ 3, 4 ] ]
at= [ [ 1, 3 ], [ 2, 4 ] ]
dot(a, at)= [ [ 5, 11 ], [ 11, 25 ] ]