mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
add a Transposition section in page 2
This commit is contained in:
12
doc/snippets/tut_arithmetic_transpose_conjugate.cpp
Normal file
12
doc/snippets/tut_arithmetic_transpose_conjugate.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
MatrixXcf a = MatrixXcf::Random(2,2);
|
||||
cout << "Here is the matrix a\n" << a << endl;
|
||||
|
||||
cout << "Here is the matrix a^T\n" << a.transpose() << endl;
|
||||
|
||||
|
||||
cout << "Here is the conjugate of a\n" << a.conjugate() << endl;
|
||||
|
||||
|
||||
cout << "Here is the matrix a^*\n" << a.adjoint() << endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user