Elementwise functions#

acos(x: Array, /) Array#

Wrapper around the underlying element-wise function acos from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.acos.html

Parameters:

x (Array)

Return type:

Array

acosh(x: Array, /) Array#

Wrapper around the underlying element-wise function acosh from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.acosh.html

Parameters:

x (Array)

Return type:

Array

add(x1, x2, /) Array#

Wrapper around the underlying element-wise function add from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.add.html

Return type:

Array

angle(x: Array) Array[source]#

Return the angle of the floating-point fa.Array values in radians. This implementation follows numpy.angle without the deg argument.

Parameters:

x (Array)

Return type:

Array

asin(x: Array, /) Array#

Wrapper around the underlying element-wise function asin from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.asin.html

Parameters:

x (Array)

Return type:

Array

asinh(x: Array, /) Array#

Wrapper around the underlying element-wise function asinh from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.asinh.html

Parameters:

x (Array)

Return type:

Array

atan(x: Array, /) Array#

Wrapper around the underlying element-wise function atan from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.atan.html

Parameters:

x (Array)

Return type:

Array

atan2(x1, x2, /) Array#

Wrapper around the underlying element-wise function atan2 from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.atan2.html

Return type:

Array

atanh(x: Array, /) Array#

Wrapper around the underlying element-wise function atanh from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.atanh.html

Parameters:

x (Array)

Return type:

Array

bitwise_and(x1, x2, /) Array#

Wrapper around the underlying element-wise function bitwise_and from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.bitwise_and.html

Return type:

Array

bitwise_invert(x: Array, /) Array#

Wrapper around the underlying element-wise function bitwise_invert from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.bitwise_invert.html

Parameters:

x (Array)

Return type:

Array

bitwise_left_shift(x1, x2, /) Array#

Wrapper around the underlying element-wise function bitwise_left_shift from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.bitwise_left_shift.html

Return type:

Array

bitwise_or(x1, x2, /) Array#

Wrapper around the underlying element-wise function bitwise_or from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.bitwise_or.html

Return type:

Array

bitwise_right_shift(x1, x2, /) Array#

Wrapper around the underlying element-wise function bitwise_right_shift from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.bitwise_right_shift.html

Return type:

Array

bitwise_xor(x1, x2, /) Array#

Wrapper around the underlying element-wise function bitwise_xor from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.bitwise_xor.html

Return type:

Array

ceil(x: Array, /) Array#

Wrapper around the underlying element-wise function ceil from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.ceil.html

Parameters:

x (Array)

Return type:

Array

clip(x: Array, /, *, min=None, max=None) Array[source]#
Parameters:

x (Array)

Return type:

Array

conj(x: Array, /) Array#

Wrapper around the underlying element-wise function conj from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.conj.html

Parameters:

x (Array)

Return type:

Array

copysign(x1, x2, /) Array#

Wrapper around the underlying element-wise function copysign from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.copysign.html

Return type:

Array

cos(x: Array, /) Array#

Wrapper around the underlying element-wise function cos from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.cos.html

Parameters:

x (Array)

Return type:

Array

cosh(x: Array, /) Array#

Wrapper around the underlying element-wise function cosh from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.cosh.html

Parameters:

x (Array)

Return type:

Array

divide(x1, x2, /) Array#

Wrapper around the underlying element-wise function divide from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.divide.html

Return type:

Array

equal(x1, x2, /) Array#

Wrapper around the underlying element-wise function equal from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.equal.html

Return type:

Array

exp(x: Array, /) Array#

Wrapper around the underlying element-wise function exp from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.exp.html

Parameters:

x (Array)

Return type:

Array

expm1(x: Array, /) Array#

Wrapper around the underlying element-wise function expm1 from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.expm1.html

Parameters:

x (Array)

Return type:

Array

floor(x: Array, /) Array#

Wrapper around the underlying element-wise function floor from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.floor.html

Parameters:

x (Array)

Return type:

Array

floor_divide(x1, x2, /) Array#

Wrapper around the underlying element-wise function floor_divide from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.floor_divide.html

Return type:

Array

greater(x1, x2, /) Array#

Wrapper around the underlying element-wise function greater from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.greater.html

Return type:

Array

greater_equal(x1, x2, /) Array#

Wrapper around the underlying element-wise function greater_equal from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.greater_equal.html

Return type:

Array

hypot(x1, x2, /) Array#

Wrapper around the underlying element-wise function hypot from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.hypot.html

Return type:

Array

imag(x: Array, /) Array#

Wrapper around the underlying element-wise function imag from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.imag.html

Parameters:

x (Array)

Return type:

Array

isfinite(x: Array, /) Array#

Wrapper around the underlying element-wise function isfinite from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.isfinite.html

Parameters:

x (Array)

Return type:

Array

isinf(x: Array, /) Array#

Wrapper around the underlying element-wise function isinf from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.isinf.html

Parameters:

x (Array)

Return type:

Array

isnan(x: Array, /) Array#

Wrapper around the underlying element-wise function isnan from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.isnan.html

Parameters:

x (Array)

Return type:

Array

less(x1, x2, /) Array#

Wrapper around the underlying element-wise function less from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.less.html

Return type:

Array

less_equal(x1, x2, /) Array#

Wrapper around the underlying element-wise function less_equal from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.less_equal.html

Return type:

Array

log(x: Array, /) Array#

Wrapper around the underlying element-wise function log from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.log.html

Parameters:

x (Array)

Return type:

Array

log10(x: Array, /) Array#

Wrapper around the underlying element-wise function log10 from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.log10.html

Parameters:

x (Array)

Return type:

Array

log1p(x: Array, /) Array#

Wrapper around the underlying element-wise function log1p from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.log1p.html

Parameters:

x (Array)

Return type:

Array

log2(x: Array, /) Array#

Wrapper around the underlying element-wise function log2 from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.log2.html

Parameters:

x (Array)

Return type:

Array

logaddexp(x1, x2, /) Array#

Wrapper around the underlying element-wise function logaddexp from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.logaddexp.html

Return type:

Array

logical_and(x1, x2, /) Array#

Wrapper around the underlying element-wise function logical_and from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.logical_and.html

Return type:

Array

logical_not(x: Array, /) Array#

Wrapper around the underlying element-wise function logical_not from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.logical_not.html

Parameters:

x (Array)

Return type:

Array

logical_or(x1, x2, /) Array#

Wrapper around the underlying element-wise function logical_or from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.logical_or.html

Return type:

Array

logical_xor(x1, x2, /) Array#

Wrapper around the underlying element-wise function logical_xor from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.logical_xor.html

Return type:

Array

maximum(x1, x2, /) Array#

Wrapper around the underlying element-wise function maximum from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.maximum.html

Return type:

Array

minimum(x1, x2, /) Array#

Wrapper around the underlying element-wise function minimum from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.minimum.html

Return type:

Array

multiply(x1, x2, /) Array#

Wrapper around the underlying element-wise function multiply from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.multiply.html

Return type:

Array

negative(x: Array, /) Array#

Wrapper around the underlying element-wise function negative from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.negative.html

Parameters:

x (Array)

Return type:

Array

not_equal(x1, x2, /) Array#

Wrapper around the underlying element-wise function not_equal from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.not_equal.html

Return type:

Array

positive(x: Array, /) Array#

Wrapper around the underlying element-wise function positive from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.positive.html

Parameters:

x (Array)

Return type:

Array

pow(x1, x2, /) Array#

Wrapper around the underlying element-wise function pow from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.pow.html

Return type:

Array

real(x: Array, /) Array#

Wrapper around the underlying element-wise function real from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.real.html

Parameters:

x (Array)

Return type:

Array

remainder(x1, x2, /) Array#

Wrapper around the underlying element-wise function remainder from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.remainder.html

Return type:

Array

round(x: Array, /) Array#

Wrapper around the underlying element-wise function round from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.round.html

Parameters:

x (Array)

Return type:

Array

sign(x: Array, /) Array#

Wrapper around the underlying element-wise function sign from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.sign.html

Parameters:

x (Array)

Return type:

Array

signbit(x: Array, /) Array#

Wrapper around the underlying element-wise function signbit from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.signbit.html

Parameters:

x (Array)

Return type:

Array

sin(x: Array, /) Array#

Wrapper around the underlying element-wise function sin from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.sin.html

Parameters:

x (Array)

Return type:

Array

sinh(x: Array, /) Array#

Wrapper around the underlying element-wise function sinh from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.sinh.html

Parameters:

x (Array)

Return type:

Array

sqrt(x: Array, /) Array#

Wrapper around the underlying element-wise function sqrt from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.sqrt.html

Parameters:

x (Array)

Return type:

Array

square(x: Array, /) Array#

Wrapper around the underlying element-wise function square from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.square.html

Parameters:

x (Array)

Return type:

Array

subtract(x1, x2, /) Array#

Wrapper around the underlying element-wise function subtract from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.subtract.html

Return type:

Array

tan(x: Array, /) Array#

Wrapper around the underlying element-wise function tan from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.tan.html

Parameters:

x (Array)

Return type:

Array

tanh(x: Array, /) Array#

Wrapper around the underlying element-wise function tanh from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.tanh.html

Parameters:

x (Array)

Return type:

Array

trunc(x: Array, /) Array#

Wrapper around the underlying element-wise function trunc from the Python Array API standard. See https://data-apis.org/array-api/latest/API_specification/generated/array_api.trunc.html

Parameters:

x (Array)

Return type:

Array