NDArrayBooleanIndexing

vecxt.NDArrayBooleanIndexing

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Extensions

Extensions

extension [A](arr: NDArray[A])(using evidence$1: ClassTag[A])
inline def apply: NDArray[A]

Select elements where mask is true. Returns a 1-D col-major NDArray. Mask must have the same shape as arr. Result length = mask.countTrue.

Select elements where mask is true. Returns a 1-D col-major NDArray. Mask must have the same shape as arr. Result length = mask.countTrue.

Attributes

inline def update: Unit

Set elements where mask is true to value. Mutates arr.data in-place. Mask must have the same shape as arr, and arr must be contiguous.

Set elements where mask is true to value. Mutates arr.data in-place. Mask must have the same shape as arr, and arr must be contiguous.

Attributes