NDArrayDoubleOps

vecxt.NDArrayDoubleOps

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Extensions

Extensions

extension (a: NDArray[Double])
inline def !:=(b: NDArray[Double]): NDArray[Boolean]

Element-wise inequality. Operands must have the same shape. If either operand is 0-d, it is treated as a scalar.

Element-wise inequality. Operands must have the same shape. If either operand is 0-d, it is treated as a scalar.

Attributes

inline def !:=(s: Double): NDArray[Boolean]

Element-wise inequality with scalar.

Element-wise inequality with scalar.

Attributes

inline def *(b: NDArray[Double])(using inline bc: BoundsCheck): NDArray[Double]

Element-wise multiplication (Hadamard product). Operands must have the same shape. If either operand is 0-d, it is treated as a scalar.

Element-wise multiplication (Hadamard product). Operands must have the same shape. If either operand is 0-d, it is treated as a scalar.

Attributes

inline def *(s: Double): NDArray[Double]

Multiply every element by scalar s.

Multiply every element by scalar s.

Attributes

inline def *=(b: NDArray[Double]): Unit

In-place element-wise multiplication. a must be contiguous; operands must have the same shape. If b is 0-d, every element of a is multiplied by b's scalar value.

In-place element-wise multiplication. a must be contiguous; operands must have the same shape. If b is 0-d, every element of a is multiplied by b's scalar value.

Attributes

inline def *=(s: Double): Unit

Multiply every element by scalar s in place. a must be contiguous.

Multiply every element by scalar s in place. a must be contiguous.

Attributes

inline def +(b: NDArray[Double])(using inline bc: BoundsCheck): NDArray[Double]

Element-wise addition. Operands must have the same shape; use broadcastTo or broadcastPair first if needed. If either operand is 0-d, it is treated as a scalar and broadcast to the other operand's shape.

Element-wise addition. Operands must have the same shape; use broadcastTo or broadcastPair first if needed. If either operand is 0-d, it is treated as a scalar and broadcast to the other operand's shape.

Attributes

inline def +(s: Double): NDArray[Double]

Add scalar s to every element.

Add scalar s to every element.

Attributes

inline def +=(b: NDArray[Double]): Unit

In-place element-wise addition. a must be contiguous; operands must have the same shape. If b is 0-d, its scalar value is added to every element of a.

In-place element-wise addition. a must be contiguous; operands must have the same shape. If b is 0-d, its scalar value is added to every element of a.

Attributes

inline def +=(s: Double): Unit

Add scalar s to every element in place. a must be contiguous.

Add scalar s to every element in place. a must be contiguous.

Attributes

inline def -(b: NDArray[Double])(using inline bc: BoundsCheck): NDArray[Double]

Element-wise subtraction. Operands must have the same shape. If either operand is 0-d, it is treated as a scalar.

Element-wise subtraction. Operands must have the same shape. If either operand is 0-d, it is treated as a scalar.

Attributes

inline def -(s: Double): NDArray[Double]

Subtract scalar s from every element.

Subtract scalar s from every element.

Attributes

inline def -=(b: NDArray[Double]): Unit

In-place element-wise subtraction. a must be contiguous; operands must have the same shape. If b is 0-d, its scalar value is subtracted from every element of a.

In-place element-wise subtraction. a must be contiguous; operands must have the same shape. If b is 0-d, its scalar value is subtracted from every element of a.

Attributes

inline def -=(s: Double): Unit

Subtract scalar s from every element in place. a must be contiguous.

Subtract scalar s from every element in place. a must be contiguous.

Attributes

inline def /(b: NDArray[Double])(using inline bc: BoundsCheck): NDArray[Double]

Element-wise division. Operands must have the same shape. If either operand is 0-d, it is treated as a scalar.

Element-wise division. Operands must have the same shape. If either operand is 0-d, it is treated as a scalar.

Attributes

inline def /(s: Double): NDArray[Double]

Divide every element by scalar s.

Divide every element by scalar s.

Attributes

inline def /=(b: NDArray[Double]): Unit

In-place element-wise division. a must be contiguous; operands must have the same shape. If b is 0-d, every element of a is divided by b's scalar value.

In-place element-wise division. a must be contiguous; operands must have the same shape. If b is 0-d, every element of a is divided by b's scalar value.

Attributes

inline def /=(s: Double): Unit

Divide every element by scalar s in place. a must be contiguous.

Divide every element by scalar s in place. a must be contiguous.

Attributes

inline def <(b: NDArray[Double]): NDArray[Boolean]

Element-wise less-than. Operands must have the same shape. If either operand is 0-d, it is treated as a scalar.

Element-wise less-than. Operands must have the same shape. If either operand is 0-d, it is treated as a scalar.

Attributes

inline def <(s: Double): NDArray[Boolean]

Element-wise less-than scalar.

Element-wise less-than scalar.

Attributes

inline def <=(b: NDArray[Double]): NDArray[Boolean]

Element-wise less-than-or-equal. Operands must have the same shape. If either operand is 0-d, it is treated as a scalar.

Element-wise less-than-or-equal. Operands must have the same shape. If either operand is 0-d, it is treated as a scalar.

Attributes

inline def <=(s: Double): NDArray[Boolean]

Element-wise less-than-or-equal scalar.

Element-wise less-than-or-equal scalar.

Attributes

inline def =:=(b: NDArray[Double]): NDArray[Boolean]

Element-wise equality. Operands must have the same shape. If either operand is 0-d, it is treated as a scalar.

Element-wise equality. Operands must have the same shape. If either operand is 0-d, it is treated as a scalar.

Attributes

inline def =:=(s: Double): NDArray[Boolean]

Element-wise equality with scalar.

Element-wise equality with scalar.

Attributes

inline def >(b: NDArray[Double]): NDArray[Boolean]

Element-wise greater-than. Operands must have the same shape. If either operand is 0-d, it is treated as a scalar.

Element-wise greater-than. Operands must have the same shape. If either operand is 0-d, it is treated as a scalar.

Attributes

inline def >(s: Double): NDArray[Boolean]

Element-wise greater-than scalar.

Element-wise greater-than scalar.

Attributes

inline def >=(b: NDArray[Double]): NDArray[Boolean]

Element-wise greater-than-or-equal. Operands must have the same shape. If either operand is 0-d, it is treated as a scalar.

Element-wise greater-than-or-equal. Operands must have the same shape. If either operand is 0-d, it is treated as a scalar.

Attributes

inline def >=(s: Double): NDArray[Boolean]

Element-wise greater-than-or-equal scalar.

Element-wise greater-than-or-equal scalar.

Attributes

inline def abs: NDArray[Double]

Element-wise absolute value.

Element-wise absolute value.

Attributes

inline def exp: NDArray[Double]

Element-wise natural exponential.

Element-wise natural exponential.

Attributes

inline def log: NDArray[Double]

Element-wise natural logarithm.

Element-wise natural logarithm.

Attributes

inline def neg: NDArray[Double]

Element-wise negation.

Element-wise negation.

Attributes

inline def sigmoid: NDArray[Double]

Element-wise sigmoid: 1 / (1 + exp(-x)).

Element-wise sigmoid: 1 / (1 + exp(-x)).

Attributes

inline def sqrt: NDArray[Double]

Element-wise square root.

Element-wise square root.

Attributes

inline def tanh: NDArray[Double]

Element-wise hyperbolic tangent.

Element-wise hyperbolic tangent.

Attributes

extension (s: Double)
inline def *(a: NDArray[Double]): NDArray[Double]

Scalar * NDArray[Double]: equivalent to arr * s.

Scalar * NDArray[Double]: equivalent to arr * s.

Attributes

inline def +(a: NDArray[Double]): NDArray[Double]

Scalar + NDArray[Double]: equivalent to arr + s.

Scalar + NDArray[Double]: equivalent to arr + s.

Attributes

inline def -(a: NDArray[Double]): NDArray[Double]

Scalar - NDArray[Double]: s - arr(i) for each element.

Scalar - NDArray[Double]: s - arr(i) for each element.

Attributes

inline def /(a: NDArray[Double]): NDArray[Double]

Scalar / NDArray[Double]: s / arr(i) for each element.

Scalar / NDArray[Double]: s / arr(i) for each element.

Attributes