where
where(a) returns those indices that are non-zero
where(cond, a, b) returns the value from a if cond is non-zero, and the value from b otherwise
Type members
Inherited types
Value members
Inherited methods
final def apply[V1, @specialized(Int, Double, Float) V2, @specialized(Int, Double, Float) V3, @specialized(Int, Double, Float) VR](v1: V1, v2: V2, v3: V3)(implicit impl: Impl3[V1, V2, V3, VR]): VR
- Inherited from:
- UFunc
final def apply[@specialized(Int, Double, Float) V1, @specialized(Int, Double, Float) V2, @specialized(Int, Double, Float) VR](v1: V1, v2: V2)(implicit impl: Impl2[V1, V2, VR]): VR
- Inherited from:
- UFunc
final def apply[@specialized(Int, Double, Float) V, @specialized(Int, Double, Float) VR](v: V)(implicit impl: Impl[V, VR]): VR
- Inherited from:
- UFunc
final def inPlace[V, V2, V3](v: V, v2: V2, v3: V3)(implicit impl: InPlaceImpl3[where.type, V, V2, V3]): V
- Inherited from:
- UFunc
Implicits
Implicits
implicit def where3ArgFromTraverseKeyValuePairs[T, Q, K, V, V2, U](implicit ev: Q <:< QuasiTensor[K, V2], trav: CanMapKeyValuePairs[T, K, V, V2, U], semi: Semiring[V]): Impl3[T, Q, Q, U]
implicit def whereFromTraverseKeyValuePairs[T, K, V](implicit trav: CanTraverseKeyValuePairs[T, K, V], semi: Semiring[V]): Impl[T, IndexedSeq[K]]