Check if all matrices in 3D data set are diagonal.
data (ndarry) – 3D dataset array.
bOut – True for diagonal argument.
bool