<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/probability/blob/v0.25.0/tensorflow_probability/python/math/linalg.py#L1347-L1370) |

Computes `matrix^-1 rhs`, where `matrix` is HPSD.

    tfp.math.hpsd_solve(
        matrix, rhs, cholesky_matrix=None
    )

Given `matrix` and `rhs`, computes `matrix^-1 rhs`, where
`matrix` is a Hermitian positive semi-definite matrix.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `matrix` | Floating-point `Tensor` of shape `[..., N, N]`. Represents a Hermitian positive semi-definite matrix. |
| `rhs` | Floating-point `Tensor` of shape `[..., N, K]`. |
| `cholesky_matrix` | (Optional) Floating-point `Tensor` of shape `[..., N, N]` that represents a Cholesky factor of `matrix`. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `hpsd_solve` | `Tensor` of shape `[..., N, K]`. |

<br />