Generalize the argument of chksquare in lapack.jl