Computes (A^H*A + l2_regularizer)^{-1} * A^H * rhs.
(matrix, rhs, l2_regularizer)
| 263 | return True |
| 264 | |
| 265 | def _overdetermined(matrix, rhs, l2_regularizer): |
| 266 | """Computes (A^H*A + l2_regularizer)^{-1} * A^H * rhs.""" |
| 267 | chol = _RegularizedGramianCholesky( |
| 268 | matrix, l2_regularizer=l2_regularizer, first_kind=True) |
| 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.""" |
no test coverage detected