Clang-format tests, examples, libraries, benchmarks, etc.

This commit is contained in:
Antonio Sánchez
2023-12-05 21:22:55 +00:00
committed by Rasmus Munk Larsen
parent 3252ecc7a4
commit 46e9cdb7fe
876 changed files with 33453 additions and 37795 deletions

View File

@@ -3,14 +3,14 @@
using namespace Eigen;
int main()
{
int main() {
const double pi = std::acos(-1.0);
Matrix3d A;
A << cos(1), -sin(1), 0,
sin(1), cos(1), 0,
0 , 0 , 1;
std::cout << "The matrix A is:\n" << A << "\n\n"
"The matrix power A^(pi/4) is:\n" << A.pow(pi/4) << std::endl;
A << cos(1), -sin(1), 0, sin(1), cos(1), 0, 0, 0, 1;
std::cout << "The matrix A is:\n"
<< A
<< "\n\n"
"The matrix power A^(pi/4) is:\n"
<< A.pow(pi / 4) << std::endl;
return 0;
}