I have an ArrayFire array of dtype=f64 that I need to cast to dtype=f32. I’m not sure how to do this other than converting to a host array and iterating through doing a static_cast. I’m sure there is a better way. I found af_cast but it seems to only be a part of the C ..
Category : arrayfire
If I use A(i, span) = A(i, span) + 1; within gfor it works. But what if I want to use a limited range instead of a full span of a dimension: gfor(seq i, A.elements()) { A(i, span) = A(i, span) + 1; // this works A(i, i+3) = A(i, i+3) + 1; // compile ..
How to search for a sequence within ArrayFire. Is it possible to locate occurrence indices? Is it possible to match all occurrences at once? Is it possible to search for multiple sequences (multi-pattern) at once? Is it possible to set a value (ex: -1) as ? wildcard? if no, what’s the trick to do the ..
Recent Comments