COSC-4P80-Assignment-2/lib/eigen-3.4.0/doc/examples/Cwise_erf.cpp

10 lines
189 B
C++
Raw Permalink Normal View History

2024-10-21 16:42:03 -04:00
#include <Eigen/Core>
#include <unsupported/Eigen/SpecialFunctions>
#include <iostream>
using namespace Eigen;
int main()
{
Array4d v(-0.5,2,0,-7);
std::cout << v.erf() << std::endl;
}