threed-beam-fea/ext/eigen-3.3.4/doc/snippets/Cwise_arg.cpp

4 lines
85 B
C++

ArrayXcf v = ArrayXcf::Random(3);
cout << v << endl << endl;
cout << arg(v) << endl;