Skip to content

numojo.routines.math.hyper

Hyperbolic routines for NuMojo (numojo.routines.math.hyper).

Implements hyperbolic and inverse hyperbolic trigonometric functions operating on NDArrays and Matrices.

Functions

arccosh

arccosh[dtype: DType](A: Matrix[dtype]) -> Matrix[dtype]

Parameters:

  • dtype (DType)

Args:

  • A (Matrix)

Returns:

  • Matrix

acosh

Overload 1

acosh[dtype: DType, backend: Backend = Vectorized](array: NDArray[dtype]) -> NDArray[dtype]

Apply acosh also known as inverse hyperbolic cosine .

Parameters:

  • dtype (DType): The element type.
  • backend (Backend): Sets utility function origin, defaults to `Vectorized.

Args:

  • array (NDArray): An Array.

Returns:

  • NDArray

Raises

Overload 2

acosh[dtype: DType](A: Matrix[dtype]) -> Matrix[dtype]

Parameters:

  • dtype (DType)

Args:

  • A (Matrix)

Returns:

  • Matrix

arcsinh

arcsinh[dtype: DType](A: Matrix[dtype]) -> Matrix[dtype]

Parameters:

  • dtype (DType)

Args:

  • A (Matrix)

Returns:

  • Matrix

asinh

Overload 1

asinh[dtype: DType, backend: Backend = Vectorized](array: NDArray[dtype]) -> NDArray[dtype]

Apply asinh also known as inverse hyperbolic sine .

Parameters:

  • dtype (DType): The element type.
  • backend (Backend): Sets utility function origin, defaults to `Vectorized.

Args:

  • array (NDArray): An Array.

Returns:

  • NDArray

Raises

Overload 2

asinh[dtype: DType](A: Matrix[dtype]) -> Matrix[dtype]

Parameters:

  • dtype (DType)

Args:

  • A (Matrix)

Returns:

  • Matrix

arctanh

arctanh[dtype: DType](A: Matrix[dtype]) -> Matrix[dtype]

Parameters:

  • dtype (DType)

Args:

  • A (Matrix)

Returns:

  • Matrix

atanh

Overload 1

atanh[dtype: DType, backend: Backend = Vectorized](array: NDArray[dtype]) -> NDArray[dtype]

Apply atanh also known as inverse hyperbolic tangent .

Parameters:

  • dtype (DType): The element type.
  • backend (Backend): Sets utility function origin, defaults to `Vectorized.

Args:

  • array (NDArray): An Array.

Returns:

  • NDArray

Raises

Overload 2

atanh[dtype: DType](A: Matrix[dtype]) -> Matrix[dtype]

Parameters:

  • dtype (DType)

Args:

  • A (Matrix)

Returns:

  • Matrix

cosh

Overload 1

cosh[dtype: DType, backend: Backend = Vectorized](array: NDArray[dtype]) -> NDArray[dtype]

Apply cosh also known as hyperbolic cosine .

Parameters:

  • dtype (DType): The element type.
  • backend (Backend): Sets utility function origin, defaults to `Vectorized.

Args:

  • array (NDArray): An Array assumed to be in radian.

Returns:

  • NDArray

Raises

Overload 2

cosh[dtype: DType](A: Matrix[dtype]) -> Matrix[dtype]

Parameters:

  • dtype (DType)

Args:

  • A (Matrix)

Returns:

  • Matrix

sinh

Overload 1

sinh[dtype: DType, backend: Backend = Vectorized](array: NDArray[dtype]) -> NDArray[dtype]

Apply sin also known as hyperbolic sine .

Parameters:

  • dtype (DType): The element type.
  • backend (Backend): Sets utility function origin, defaults to `Vectorized.

Args:

  • array (NDArray): An Array assumed to be in radian.

Returns:

  • NDArray

Raises

Overload 2

sinh[dtype: DType](A: Matrix[dtype]) -> Matrix[dtype]

Parameters:

  • dtype (DType)

Args:

  • A (Matrix)

Returns:

  • Matrix

tanh

Overload 1

tanh[dtype: DType, backend: Backend = Vectorized](array: NDArray[dtype]) -> NDArray[dtype]

Apply tan also known as hyperbolic tangent .

Parameters:

  • dtype (DType): The element type.
  • backend (Backend): Sets utility function origin, defaults to `Vectorized.

Args:

  • array (NDArray): An Array assumed to be in radian.

Returns:

  • NDArray

Raises

Overload 2

tanh[dtype: DType](A: Matrix[dtype]) -> Matrix[dtype]

Parameters:

  • dtype (DType)

Args:

  • A (Matrix)

Returns:

  • Matrix