Skip to content
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

Update macros.rs #195

Merged
merged 1 commit into from
May 16, 2019
Merged

Update macros.rs #195

merged 1 commit into from
May 16, 2019

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