Skip to content

Commit

Permalink
Added lu_solve function in linalg
Browse files Browse the repository at this point in the history
  • Loading branch information
TomiwaPhilip committed Aug 16, 2023
1 parent 74c13af commit 58a9e93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ivy/functional/frontends/tensorflow/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,3 +470,8 @@ def tensor_diag_part(input, name=None):
reshaped = ivy.reshape(input, (prod, prod))
diagonal = ivy.diagonal(reshaped)
return ivy.reshape(diagonal, tuple(half_shape))


@to_ivy_arrays_and_back
def lu_solve(lower_upper, perm, rhs, validate_args=False, name=None):
return ivy.solve(lower_upper, perm, rhs, validate_args=False, name=None)

0 comments on commit 58a9e93

Please sign in to comment.