summaryrefslogtreecommitdiffhomepage
path: root/eigen/doc/snippets/MatrixBase_cwiseSqrt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'eigen/doc/snippets/MatrixBase_cwiseSqrt.cpp')
-rw-r--r--eigen/doc/snippets/MatrixBase_cwiseSqrt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/eigen/doc/snippets/MatrixBase_cwiseSqrt.cpp b/eigen/doc/snippets/MatrixBase_cwiseSqrt.cpp
new file mode 100644
index 0000000..4bfd75d
--- /dev/null
+++ b/eigen/doc/snippets/MatrixBase_cwiseSqrt.cpp
@@ -0,0 +1,2 @@
+Vector3d v(1,2,4);
+cout << v.cwiseSqrt() << endl;