-
Notifications
You must be signed in to change notification settings - Fork 2
Add
& Sub
between MatQ
& MatZ
#489
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
base: dev
Are you sure you want to change the base?
Conversation
src/rational/mat_q/arithmetic/add.rs
Outdated
/// let a = MatQ::from_str("[[1/2, 2/3, 3/4],[3/4, 4/5, 5/7]]").unwrap(); | ||
/// let b = MatQ::from_str("[[1/4, 9/7, 3/7],[1, 0, 5]]").unwrap(); | ||
/// let c = MatZ::identity(2, 3); |
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.
/// let a = MatQ::from_str("[[1/2, 2/3, 3/4],[3/4, 4/5, 5/7]]").unwrap(); | |
/// let b = MatQ::from_str("[[1/4, 9/7, 3/7],[1, 0, 5]]").unwrap(); | |
/// let c = MatZ::identity(2, 3); |
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.
I don't understand this comment. If I remove these lines, the doc-comment is invalid. What is the suggestion here?
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.
Ah, I think I got it. I divided the doc-test into the two doc-comments.
2e3b237
to
5f54f65
Compare
Description
This PR implements...
add
andsub
forMatQ
andMatZ
No additional tests required as the function uses the
add_safe
/sub_safe
which is already tested.