可能跟数组的大小有关。。你看看这个链接有没有帮助 我还是没太理解
http://stackoverflow.com/questio ... t-of-a-matrix-in-r#
For large matrices the determinant can be too large or too small and overflow the double precision. The determinant is the product of the eigenvalues: for instance, if they are all .0001, your matrix is invertible, but the determinant is 1e-400, which is too small, and can only be represented as 0.
You can look at the logarithm of the determinant instead,
determinant(R, logarithm=TRUE)
or, directly, the eigenvalues
eigen(R, only.values=TRUE) |