Implementation nlinalg.alloc_diag() in Aesara tensor

I didn’t know about that one! There’s also at.diag. Seems making diagonal matrices is popular enough to warrant several options.

1 Like