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