I have a very large matrix of numbers. I want to check if all its entries are real. At the moment I am using
realQ = And @@ Thread[Flatten[Im @ #] == 0] &
Is there any faster/safer/better way to do it?
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.Sign up to join this community