aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/MatrixBase_row.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-12-24 11:14:25 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-12-24 11:14:25 +0000
commit3cd2a125b2712d6b7c620bef0671c6a05839d6e5 (patch)
tree039a066cff371aff4884e6bde9cc6b2921ff48c3 /doc/snippets/MatrixBase_row.cpp
parente9375836556a65b9cc5a55e49acdb823bc111a30 (diff)
- rework the coefficients API
- make vectors use a separate loop unroller, so that copying a row-vector into a col-vector is now possible - add much more documentation - misc improvements
Diffstat (limited to 'doc/snippets/MatrixBase_row.cpp')
-rw-r--r--doc/snippets/MatrixBase_row.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/snippets/MatrixBase_row.cpp b/doc/snippets/MatrixBase_row.cpp
new file mode 100644
index 000000000..3f1d73b9e
--- /dev/null
+++ b/doc/snippets/MatrixBase_row.cpp
@@ -0,0 +1,3 @@
+Matrix3d m = Matrix3d::identity();
+m.row(1) = Vector3d(4,5,6);
+cout << m << endl;