core.HasCovMany
core.HasCovMany()A weight-space posterior whose covariance products take many vectors in one call.
outputs uses these methods when a posterior has them and vmaps cov_mv and cov_sqrt_mv otherwise. A posterior implements them only when its products batch.
Methods
| Name | Description |
|---|---|
| cov_many | \(\Sigma v_i\) for each of the n vectors \(v_i\). |
| cov_sqrt_many | \(L v_i\) for each of the n vectors \(v_i\), with \(L L^\top = \Sigma\). |
cov_many
core.HasCovMany.cov_many(v, /)\(\Sigma v_i\) for each of the n vectors \(v_i\).
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| v | Params | Parameter mapping whose leaves have a leading axis of n vectors. |
required |
Returns
| Name | Type | Description |
|---|---|---|
| Params | A parameter mapping shaped like v, in the mean’s dtypes. |
cov_sqrt_many
core.HasCovMany.cov_sqrt_many(v, /)\(L v_i\) for each of the n vectors \(v_i\), with \(L L^\top = \Sigma\).
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| v | Params | Parameter mapping whose leaves have a leading axis of n vectors. |
required |
Returns
| Name | Type | Description |
|---|---|---|
| Params | A parameter mapping shaped like v, in the mean’s dtypes. |