Skip to content
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

Open
wants to merge 1 commit into
base: enhancement/misc-changes
Choose a base branch
from

Conversation

jmbr
Copy link
Contributor

@jmbr jmbr commented Jan 29, 2020

Basic stuff.

@jmbr jmbr added the 👷draft Don't review or commit just yet label Jan 29, 2020
vector/bit)

(defun mod2+ (source1 source2 &optional target)
(binary-operator (lambda (x y) (mod (+ x y) 2)) source1 source2 target))
Copy link
Contributor

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 bits? If so, maybe consider logxor.

@braised-babbage
Copy link
Contributor

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)
Copy link
Member

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.

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👷draft Don't review or commit just yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants