# core.with_eigen

``` python
core.with_eigen(op, /)
```

`op` with each `Dense` in it carrying its eigendecomposition (`Dense.with_eigen`).

Tuning the prior of the result costs one `eigh` per `Dense` instead of a Cholesky factorization per step.

## Parameters

| Name | Type | Description | Default |
|----|----|----|----|
| op | Operator\[V\] | The operator. It maps a `Dense`, the `Dense` inside a `Joint`, and the `Dense` blocks of a `BlockDiag`; any other operator or block comes back unchanged. | *required* |

## Returns

| Name | Type          | Description                   |
|------|---------------|-------------------------------|
|      | Operator\[V\] | An operator of the same type. |
