added NaN test for tcrossprod