cr.nimble.add_to_diagonal

cr.nimble.add_to_diagonal(A, value)[source]

Add a specific value to the diagonal elements

Parameters
Returns

Matrix with updated diagonal

Return type

(jax.numpy.ndarray)