1 #include <Eigen/Core> 2 #include <unsupported/Eigen/SpecialFunctions> 3 #include <iostream> 4 using namespace Eigen; main()5 int main() 6 { 7 Array4d v(-0.5,2,0,-7); 8 std::cout << v.erf() << std::endl; 9 } 10