Skip to main content

modulus

Overloads

NameDescription
modulus(const RealArray arr, const RealArray m) -> RealArrayComputes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).
modulus(const bool arr, const IntegerArray m) -> IntegerArrayComputes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).
modulus(const real arr, const RealArray m) -> RealArrayComputes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).
modulus(const integer arr, const RealArray m) -> RealArrayComputes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).
modulus(const integer arr, const IntegerArray m) -> IntegerArrayComputes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).
modulus(const RealArray arr, const bool m) -> RealArrayComputes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).
modulus(const RealArray arr, const real m) -> RealArrayComputes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).
modulus(const RealArray arr, const integer m) -> RealArrayComputes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).
modulus(const bool arr, const RealArray m) -> RealArrayComputes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).
modulus(const IntegerArray arr, const integer m) -> IntegerArrayComputes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).
modulus(const IntegerArray arr, const bool m) -> IntegerArrayComputes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).
modulus(const IntegerArray arr, const IntegerArray m) -> IntegerArrayComputes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).

modulus(const RealArray arr, const RealArray m) -> RealArray

Computes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).

Parameters

  • arr: The array or scalar dividend.
  • m: The array or scalar divisor.

modulus(const bool arr, const IntegerArray m) -> IntegerArray

Computes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).

Parameters

  • arr: The array or scalar dividend.
  • m: The array or scalar divisor.

modulus(const real arr, const RealArray m) -> RealArray

Computes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).

Parameters

  • arr: The array or scalar dividend.
  • m: The array or scalar divisor.

modulus(const integer arr, const RealArray m) -> RealArray

Computes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).

Parameters

  • arr: The array or scalar dividend.
  • m: The array or scalar divisor.

modulus(const integer arr, const IntegerArray m) -> IntegerArray

Computes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).

Parameters

  • arr: The array or scalar dividend.
  • m: The array or scalar divisor.

modulus(const RealArray arr, const bool m) -> RealArray

Computes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).

Parameters

  • arr: The array or scalar dividend.
  • m: The array or scalar divisor.

modulus(const RealArray arr, const real m) -> RealArray

Computes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).

Parameters

  • arr: The array or scalar dividend.
  • m: The array or scalar divisor.

modulus(const RealArray arr, const integer m) -> RealArray

Computes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).

Parameters

  • arr: The array or scalar dividend.
  • m: The array or scalar divisor.

modulus(const bool arr, const RealArray m) -> RealArray

Computes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).

Parameters

  • arr: The array or scalar dividend.
  • m: The array or scalar divisor.

modulus(const IntegerArray arr, const integer m) -> IntegerArray

Computes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).

Parameters

  • arr: The array or scalar dividend.
  • m: The array or scalar divisor.

modulus(const IntegerArray arr, const bool m) -> IntegerArray

Computes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).

Parameters

  • arr: The array or scalar dividend.
  • m: The array or scalar divisor.

modulus(const IntegerArray arr, const IntegerArray m) -> IntegerArray

Computes the remainder after division of a by m, where a is the dividend and m is the divisor. Note that nonzero results have the same sign as the divisor. This function is equivalent to a - m * floor(a / m).

Parameters

  • arr: The array or scalar dividend.
  • m: The array or scalar divisor.