Any examples of algorithm.reduction.argmax usage?
I am writing fast where function, and from description argwhere looks like a good candidate but can't figure out how to use it. For example what is OutputChainPtr?
@always_inline
fn where(self, val: Int8, vec: DTypePointer[DType.int8]):
@parameter
fn w[nelts : Int](i : Int):
var res = (self.values.simd_load[nelts](i) == val)
#algorithm.reduction.argmax
algorithm.vectorize[nelts, w](ar_size*ar_size)
