aesara.tensor.slinalg.solve_triangular

aesara.tensor.slinalg.solve_triangular#

aesara.tensor.slinalg.solve_triangular(a: TensorVariable, b: TensorVariable, trans: int | str = 0, lower: bool = False, unit_diagonal: bool = False, check_finite: bool = True) TensorVariable[source]#

Solve the equation a x = b for x, assuming a is a triangular matrix.

Parameters:
  • a – Square input data

  • b – Input data for the right hand side.

  • lower (bool, optional) – Use only data contained in the lower triangle of a. Default is to use upper triangle.

  • trans ({0, 1, 2, ‘N’, ‘T’, ‘C’}, optional) – Type of system to solve: trans system 0 or ‘N’ a x = b 1 or ‘T’ a^T x = b 2 or ‘C’ a^H x = b

  • unit_diagonal (bool, optional) – If True, diagonal elements of a are assumed to be 1 and will not be referenced.

  • check_finite (bool, optional) – Whether to check that the input matrices contain only finite numbers. Disabling may give a performance gain, but may result in problems (crashes, non-termination) if the inputs do contain infinities or NaNs.