COSC-4P80-Assignment-2/lib/eigen-3.4.0/doc/snippets/Cwise_pow.cpp

3 lines
53 B
C++

Array3d v(8,27,64);
cout << v.pow(0.333333) << endl;