Guard Eigen for SWIG in GPU classes.