mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Clang-format tests, examples, libraries, benchmarks, etc.
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
3252ecc7a4
commit
46e9cdb7fe
@@ -3,13 +3,10 @@
|
||||
|
||||
using namespace Eigen;
|
||||
|
||||
int main()
|
||||
{
|
||||
int main() {
|
||||
using std::sqrt;
|
||||
MatrixXd A(3,3);
|
||||
A << 0.5*sqrt(2), -0.5*sqrt(2), 0,
|
||||
0.5*sqrt(2), 0.5*sqrt(2), 0,
|
||||
0, 0, 1;
|
||||
MatrixXd A(3, 3);
|
||||
A << 0.5 * sqrt(2), -0.5 * sqrt(2), 0, 0.5 * sqrt(2), 0.5 * sqrt(2), 0, 0, 0, 1;
|
||||
std::cout << "The matrix A is:\n" << A << "\n\n";
|
||||
std::cout << "The matrix logarithm of A is:\n" << A.log() << "\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user