tfp.substrates.jax.math.cholesky_update
Stay organized with collections
Save and categorize content based on your preferences.
Returns cholesky of chol @ chol.T + multiplier * u @ u.T.
tfp.substrates.jax.math.cholesky_update(
chol, update_vector, multiplier=1.0, name=None
)
Given a (batch of) lower triangular cholesky factor(s) chol
, along with a
(batch of) vector(s) update_vector
, compute the lower triangular cholesky
factor of the rank-1 update chol @ chol.T + multiplier * u @ u.T
, where
multiplier
is a (batch of) scalar(s).
If chol
has shape [L, L]
, this has complexity O(L^2)
compared to the
naive algorithm which has complexity O(L^3)
.
Args |
chol
|
Floating-point Tensor with shape [B1, ..., Bn, L, L] .
Cholesky decomposition of mat = chol @ chol.T . Batch dimensions
must be broadcastable with update_vector and multiplier .
|
update_vector
|
Floating-point Tensor with shape [B1, ... Bn, L] . Vector
defining rank-one update. Batch dimensions must be broadcastable with
chol and multiplier .
|
multiplier
|
Floating-point Tensor with shape [B1, ..., Bn]. Scalar
multiplier to rank-one update. Batch dimensions must be broadcastable
with choland update_vector. Note that updates where multiplieris
positive are numerically stable, while when multiplieris negative
(downdating), the update will only work if the new resulting matrix is
still positive definite.
</td>
</tr><tr>
<td> name`
|
Optional name for this op.
|
References
[1] Oswin Krause. Christian Igel. A More Efficient Rank-one Covariance
Matrix Update for Evolution Strategies. 2015 ACM Conference.
https://www.researchgate.net/publication/300581419_A_More_Efficient_Rank-one_Covariance_Matrix_Update_for_Evolution_Strategies
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-11-21 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-11-21 UTC."],[],[]]