When Does a Matrix Have a Square Root or a Log? | AMiner