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
Custom classes for Matrices? #53
Comments
Sorry for the late response. There appears to be an issue in my code. It actually isn't in the Matrix code, it is in my What I need to do is either fix the infinite loop happening in the Thanks for Submitting the issue. I'll post on this issue again when it is fixed. :) |
I have fixed the issue, although I currently require a few more operators than just the ones you had in your sample. All the test methods for the Towel/Tools/Towel_Testing/Mathematics/Matrix.cs Line 1737 in a20b32e
You can see that I added the following operators: public static bool operator <=(MyFloat a, MyFloat b) => a.value <= b.value;
public static bool operator >=(MyFloat a, MyFloat b) => a.value >= b.value;
public static bool operator ==(MyFloat a, MyFloat b) => a.value == b.value;
public static bool operator !=(MyFloat a, MyFloat b) => a.value != b.value;
public static MyFloat operator -(MyFloat a) => new MyFloat(-a.value); As for the Towel/Sources/Towel/Constant.cs Line 64 in a20b32e
I have not update the nuget package as of this post, but I will do that in the near future. |
Is there a hotfix so I could make it work now? Maybe I should add another method or operator? |
I believe this issue was fixed in PR #54. If there is still an issue or further issues, please re-open this issue or open a new issue. |
I know you can use user-defined classes for matrices, but I cannot go through it. Let's say I want to implement my float:
Then I create two matrices and try to multiply them
And then it hangs. I think I'm missing something, but couldn't find it in docs or samples, but how do I make it work?
The text was updated successfully, but these errors were encountered: