Skip to content

Commit

Permalink
[system-a] toys/ should also export dot
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyuheng committed May 20, 2024
1 parent 9de3cdf commit 20ccc01
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# system-a

[system-a] `toys/` should not have index.js
[system-a] `Representation` -- `{ inflate, deflate, update }`

- with `velocityAccumulationFactor`
Expand Down
3 changes: 1 addition & 2 deletions src/system-a/targets/plane.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { type Tensor } from "../tensor/index.js"
import { dot } from "../toys/dot.js"
import { add } from "../toys/index.js"
import { add, dot } from "../toys/index.js"

export function plane(t: Tensor): (...ps: [Tensor, Tensor]) => Tensor {
return (ps0, ps1) => add(dot(ps0, t), ps1)
Expand Down
1 change: 1 addition & 0 deletions src/system-a/toys/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from "./dot.js"
export * from "./sum.js"
export * from "./toys.js"

0 comments on commit 20ccc01

Please sign in to comment.