Skip to content

If conditions for logic? #151

Answered by 9prady9
polarathene asked this question in Q&A
Discussion options

You must be logged in to vote

@UltimaRatio @polarathene

There are two versions of reduction based functions always(w.r.t ArrayFire)

  1. Reduce operation takes place a given specific dimension. Functions such as all_true, any_true etc. - note that these functions take an additional integer argument that is used to specify the dimension along with reduction operation will take place.
  2. Reduce the whole array. Functions such as all_true_all, any_true_all etc.

When you reduce the whole array i.e. case (2), obviously you can use it as part of conditional statements as the return variable of such function is of native type thus allowing usage in such scenarios. However, for case (1) there is no guarantee that the final output a…

Replies: 14 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by 9prady9
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #151 on December 09, 2020 05:15.