Computes A^H * (A*A^H + l2_regularizer)^{-1} * rhs.
(matrix, rhs, l2_regularizer)
| 269 | return cholesky_solve(chol, math_ops.matmul(matrix, rhs, adjoint_a=True)) |
| 270 | |
| 271 | def _underdetermined(matrix, rhs, l2_regularizer): |
| 272 | """Computes A^H * (A*A^H + l2_regularizer)^{-1} * rhs.""" |
| 273 | chol = _RegularizedGramianCholesky( |
| 274 | matrix, l2_regularizer=l2_regularizer, first_kind=False) |
| 275 | return math_ops.matmul(matrix, cholesky_solve(chol, rhs), adjoint_a=True) |
| 276 | |
| 277 | def _composite_impl(matrix, rhs, l2_regularizer): |
| 278 | """Composite implementation of matrix_solve_ls that supports GPU.""" |
no test coverage detected