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
@@ -1,7 +1,7 @@
|
||||
SparseMatrix<double> A(3,3);
|
||||
A.insert(1,2) = 0;
|
||||
A.insert(0,1) = 1;
|
||||
A.insert(2,0) = 2;
|
||||
SparseMatrix<double> A(3, 3);
|
||||
A.insert(1, 2) = 0;
|
||||
A.insert(0, 1) = 1;
|
||||
A.insert(2, 0) = 2;
|
||||
A.makeCompressed();
|
||||
cout << "The matrix A is:" << endl << MatrixXd(A) << endl;
|
||||
cout << "it has " << A.nonZeros() << " stored non zero coefficients that are: " << A.coeffs().transpose() << endl;
|
||||
|
||||
Reference in New Issue
Block a user