Skip to content

Conversation

nlsnightmare
Copy link
Contributor

Updated macros af_print, join_many and eval to work with expressions instead of identifiers.
Before the update, code like this:

let a = arrayfire::randu(Dim4::new(&[3, 3, 1, 1]));
af_print!("A transposed: ", arrayfire::transpose(&a, false));

Would not compile, and should have been written like this:

let a = arrayfire::randu(Dim4::new(&[3, 3, 1, 1]));
let a_T =  arrayfire::transpose(&a, false);
af_print!("A transposed: ", a_T);

The update fixes this issue

Updated macros af_print, join_many and eval to work with expressions instead of identifiers.
@9prady9
Copy link
Member

9prady9 commented May 16, 2019

@nlsnightmare thank you!

@9prady9 9prady9 merged commit 208758b into arrayfire:master May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants