Count the number of complex, real and pure imaginary numbers in a numpy matrix
Count the number of complex, real and pure imaginary numbers in a numpy matrix Question: Given a Numpy array/matrix, what is pythonic way to count the number of complex, pure real and pure imaginary number: [[ 1. +0.j 1. +0.j 1. +0.j 1. +0.j 1. +0.j ] [ 1. +0.j 0.309+0.951j -0.809+0.588j -0.809-0.588j 0.309-0.951j] [ …
Total answers: 1