-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(dual-algebra): update deps, imports, use new Fn types
- Loading branch information
1 parent
683b4e9
commit 2438054
Showing
4 changed files
with
45 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,26 @@ | ||
import type { Fn, Fn2, Fn3, Fn4, NumericArray } from "@thi.ng/api"; | ||
import type { | ||
Fn, | ||
Fn2, | ||
FnU2, | ||
FnU3, | ||
FnU4, | ||
FnU5, | ||
FnU6, | ||
NumericArray, | ||
} from "@thi.ng/api"; | ||
|
||
export type Dual = NumericArray; | ||
|
||
export type Op1 = Fn<Dual, Dual>; | ||
|
||
export type Op1N = Fn2<Dual, number, Dual>; | ||
export type Op2 = Fn2<Dual, Dual, Dual>; | ||
export type Op3 = Fn3<Dual, Dual, Dual, Dual>; | ||
export type Op4 = Fn4<Dual, Dual, Dual, Dual, Dual>; | ||
|
||
export type Op2 = FnU2<Dual>; | ||
|
||
export type Op3 = FnU3<Dual>; | ||
|
||
export type Op4 = FnU4<Dual>; | ||
|
||
export type Op5 = FnU5<Dual>; | ||
|
||
export type Op6 = FnU6<Dual>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters