Ndarray rust. For real matrices, sign is 1, 0, or -1.