Implement ndarray binary, unary and compare operators #390
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#390
Loading…
Reference in New Issue
No description provided.
Delete Branch "enhance/issue-149-ndarray/operators"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Omissions (will be implemented in a separate PR):
1 < 2 < np_identity(2)
)29ae48faad
toe69fab866c
e69fab866c
to847d19077e
WIP: Implement ndarray binary, unary and compare operatorsto Implement ndarray binary, unary and compare operators@ -524,6 +545,20 @@ pub fn get_builtins(primitives: &mut (PrimitiveStore, Unifier)) -> BuiltinInfo {
methods: vec![
("copy".into(), ndarray_copy_ty.0, DefinitionId(PRIMITIVE_DEF_IDS.ndarray.0 + 1)),
("fill".into(), ndarray_fill_ty.0, DefinitionId(PRIMITIVE_DEF_IDS.ndarray.0 + 2)),
("__add__".into(), ndarray_add_ty.0, DefinitionId(PRIMITIVE_DEF_IDS.ndarray.0 + 3)),
All this manual and error-prone definitionid allocation will have to be cleaned up at some point.
@ -233,0 +246,4 @@
}
}
impl TryFrom<SymbolValue> for i128 {
Why do we need i128 anywhere?
Copied with the conversation in Mattermost:
847d19077e
toa920fe0501