cr.nimble.set_diagonal

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

Sets the diagonal elements to a specific value

Parameters
Returns

Matrix with updated diagonal

Return type

(jax.numpy.ndarray)