-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Add features to extend expressions functionalities (#36)
This PR aimed to accomplish the following - [x] (**NO LONGER VALID**) extend arithmetic operations between `Expression` and numeric values, such as int, float, complex, to also external packages such as `numpy` and `torch` (currently only native python numeric types supported) - [x] remove `withrepr` decorator. It caused issues for not supporting kwargs, such as the case of `NativeDrive` with its `instruction_name` kwarg - [x] include `__matmul__` (`@`) operation as a kron operation on `Expression` --------- Signed-off-by: Doomsk <[email protected]> Co-authored-by: RolandMacDoland <[email protected]> Co-authored-by: Kaonan Micadei <[email protected]> Co-authored-by: Pim Venderbosch <[email protected]>
- Loading branch information
1 parent
286da76
commit 3fb112c
Showing
8 changed files
with
75 additions
and
75 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
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
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from __future__ import annotations | ||
|
||
from typing import Union | ||
|
||
|
||
Numeric = Union[complex | float | int] |
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
Empty file.
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