tf.linalg.cholesky_solve
Solves systems of linear eqns A X = RHS
, given Cholesky factorizations.
tf.linalg.cholesky_solve(
chol, rhs, name=None
)
A = ...
RHS = ...
chol = tf.linalg.cholesky(A)
X = tf.linalg.cholesky_solve(chol, RHS)
X[3, :, 0]
A = ...
RHS = ...
...
X[3, :, 2]
Args |
chol | A Tensor . Must be float32 or float64 , shape is [..., M, M] . Cholesky factorization of A , e.g. chol = tf.linalg.cholesky(A) . For that reason, only the lower triangular parts (including the diagonal) of the last two dimensions of chol are used. The strictly upper part is assumed to be zero and not accessed. |
rhs | A Tensor , same type as chol , shape is [..., M, K] . |
name | A name to give this Op . Defaults to cholesky_solve . |
Returns |
Solution to A x = rhs , shape [..., M, K] . |