Skip to main content

argwhere

Function argwhere 

Source
pub fn argwhere<T: Element>(a: &Array<T>) -> Array<usize>
Expand description

Implements np.argwhere with array value semantics.

use rustnum as np;
assert_eq!(np::argwhere(&np::array![[0,1],[2,0]]).to_vec(),[0,1,1,0]);