Conversation
…hat outputs Vectors (3 and 12 dimensions) Notes: I am slowly translating Mathlab to PHP, creating new methods to do all the cool Matrix things PHP does not has by default. I am also compiling and testing/comparing output of the operations side by side with to check my logic. Feels like going back to year one of University (miss that professor) So this is for now very WIP. Depends on another pull i have prep (and easy one) for strawberryfield and i will eventually move all the Hadamard and element-wise operations across Matrices into its own Class (cleaner/easier to follow/eventually i should create a library) and remove all comments i have inline which are mostly copies/references from the original sources. So why committing? Bc it is a LOT. and i prefer to have a WIP up But committing now
…ble to call e.g abs() on each element I might need to add later on an extra `..$arguments` to that function signature, if the callable (while translating the mathlab code) requires extra input
…s translating (requires such concentration(
…row index) made me have to go back to some of my logic This adds a helper logic (will be its own method) to cummulative sum per row/col depending on the dimension chosen. I feel i could write a whole "mathlab" library soon in pure PHP
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Processor will output Vectors (3 and 12 dimensions) + Hex Metadata of found colors
See #115
Notes:
I am slowly translating
MathlabtoPHP, creating new methods to do all the cool Matrix things PHP does not provide by default and proving math. Dirty and NON functional so far ok?I am also compiling and testing/comparing output of the operations side by side between languages with progressive checks to my logic.
Feels like going back to year one of University (miss that professor). So this is for now very WIP. Depends on another pull i have prep (and easy one) for strawberryfield and i will eventually move all the
Hadamardandelement-wiseoperations across Matrices into its own Class (cleaner/easier to follow/eventually i should create a library) and remove all comments i have inline which are mostly copies/references from the original Mathlab library sources. So why committing? Bc it is a LOT. and i prefer to have a WIP up before I get lost in the "local changes" weed.