<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/probability/blob/v0.25.0/tensorflow_probability/substrates/jax/math/linalg.py#L55-L108) |

Concatenates `chol @ chol.T` with additional rows and columns.

#### View aliases


**Main aliases**

[`tfp.experimental.fastgp.fast_gp.fast_log_det.preconditioners.tfp_math.cholesky_concat`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/fastgp/preconditioners/tfp_math/cholesky_concat), [`tfp.experimental.fastgp.fast_gp.preconditioners.tfp_math.cholesky_concat`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/fastgp/preconditioners/tfp_math/cholesky_concat), [`tfp.experimental.fastgp.fast_log_det.preconditioners.tfp_math.cholesky_concat`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/fastgp/preconditioners/tfp_math/cholesky_concat), [`tfp.experimental.fastgp.fast_mtgp.fast_gp.fast_log_det.preconditioners.tfp_math.cholesky_concat`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/fastgp/preconditioners/tfp_math/cholesky_concat), [`tfp.experimental.fastgp.fast_mtgp.fast_gp.preconditioners.tfp_math.cholesky_concat`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/fastgp/preconditioners/tfp_math/cholesky_concat), [`tfp.experimental.fastgp.fast_mtgp.fast_log_det.preconditioners.tfp_math.cholesky_concat`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/fastgp/preconditioners/tfp_math/cholesky_concat), [`tfp.experimental.fastgp.fast_mtgp.preconditioners.tfp_math.cholesky_concat`](https://www.tensorflow.org/probability/api_docs/python/tfp/experimental/fastgp/preconditioners/tfp_math/cholesky_concat)

<br />

    tfp.experimental.fastgp.preconditioners.tfp_math.cholesky_concat(
        chol, cols, name=None
    )

This operation is conceptually identical to:

    def cholesky_concat_slow(chol, cols):  # cols shaped (n + m) x m = z x m
      mat = tf.matmul(chol, chol, adjoint_b=True)  # shape of n x n
      # Concat columns.
      mat = tf.concat([mat, cols[..., :tf.shape(mat)[-2], :]], axis=-1)  # n x z
      # Concat rows.
      mat = tf.concat([mat, tf.linalg.matrix_transpose(cols)], axis=-2)  # z x z
      return tf.linalg.cholesky(mat)

but whereas `cholesky_concat_slow` would cost `O(z**3)` work,
`cholesky_concat` only costs `O(z**2 + m**3)` work.

The resulting (implicit) matrix must be symmetric and positive definite.
Thus, the bottom right `m x m` must be self-adjoint, and we do not require a
separate `rows` argument (which can be inferred from `conj(cols.T)`).

<br />

<br />

<br />

| ## Args ||
|---|---|
| `chol` | Cholesky decomposition of `mat = chol @ chol.T`. |
| `cols` | The new columns whose first `n` rows we would like concatenated to the right of `mat = chol @ chol.T`, and whose conjugate transpose we would like concatenated to the bottom of `concat(mat, cols[:n,:])`. A `Tensor` with final dims `(n+m, m)`. The first `n` rows are the top right rectangle (their conjugate transpose forms the bottom left), and the bottom `m x m` is self-adjoint. |
| `name` | Optional name for this op. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `chol_concat` | The Cholesky decomposition of: <br /> [ [ mat  cols[:n, :] ] [   conj(cols.T)   ] ] <br /> |

<br />