Replies: 2 comments
-
Your inline type hints suggest one array has elements of f64 and the other f32, otherwise they should be the same type. I'd check aligning them on type first. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks, I forced to f32 for both but it still gives the same error |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Sorry I am terrible at formatting markdown so I pasted a picture of the code as well.
I have a test that I want to use to check some 2D array maths. I want to do an assert on an approximately equal value. The last line does not work as the trait is not implemented.
#[test]
fn test_create_y_rotation_matrix() {
let expected = arr2(&[
[0.93969262, 0., 0.34202015, 0.],
[0., 1., 0., 0.],
[-0.34202015, 0., 0.93969262, 0.],
[0., 0., 0., 1.],
]);
}
Beta Was this translation helpful? Give feedback.
All reactions