-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matrix arithmetic in GF(2) #75
base: enhancement/misc-changes
Are you sure you want to change the base?
Conversation
vector/bit) | ||
|
||
(defun mod2+ (source1 source2 &optional target) | ||
(binary-operator (lambda (x y) (mod (+ x y) 2)) source1 source2 target)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are x
and y
guaranteed to be bit
s? If so, maybe consider logxor
.
Neat-o |
@@ -30,6 +32,7 @@ | |||
((subtypep type 'double-float) 'tensor/double-float) | |||
((subtypep type '(complex single-float)) 'tensor/complex-single-float) | |||
((subtypep type '(complex double-float)) 'tensor/complex-double-float) | |||
((subtypep type 'bit) 'tensor/bit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The amount of repetition is making be think there must be a better way. Probably in a different PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that is one of the reasons I paused this.
Basic stuff.