Support for f-order in linalg.dot_diag