From 5c22c7a7de55eeeafbf53e38711617238e61194a Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Sat, 21 Mar 2020 21:30:06 -0400 Subject: Make file formatting comply with POSIX and Unix standards UTF-8, LF, no BOM, and newlines at the end of files --- doc/eigendoxy.css | 2 +- doc/snippets/Array_initializer_list_23_cxx11.cpp | 2 +- doc/snippets/Array_initializer_list_vector_cxx11.cpp | 2 +- doc/snippets/Array_variadic_ctor_cxx11.cpp | 2 +- doc/snippets/BiCGSTAB_simple.cpp | 2 +- doc/snippets/BiCGSTAB_step_by_step.cpp | 2 +- doc/snippets/Jacobi_makeGivens.cpp | 2 +- doc/snippets/Jacobi_makeJacobi.cpp | 2 +- doc/snippets/Map_placement_new.cpp | 2 +- doc/snippets/MatrixBase_colwise_iterator_cxx11.cpp | 2 +- doc/snippets/MatrixBase_hnormalized.cpp | 2 +- doc/snippets/MatrixBase_homogeneous.cpp | 2 +- doc/snippets/Matrix_initializer_list_23_cxx11.cpp | 2 +- doc/snippets/Matrix_initializer_list_vector_cxx11.cpp | 2 +- doc/snippets/Matrix_variadic_ctor_cxx11.cpp | 2 +- doc/snippets/Slicing_arrayexpr.cpp | 2 +- doc/snippets/Slicing_custom_padding_cxx11.cpp | 2 +- doc/snippets/Slicing_rawarray_cxx11.cpp | 2 +- doc/snippets/Slicing_stdvector_cxx11.cpp | 2 +- doc/snippets/TopicAliasing_mult4.cpp | 2 +- doc/snippets/Tutorial_ReshapeMat2Mat.cpp | 2 +- doc/snippets/Tutorial_ReshapeMat2Vec.cpp | 2 +- doc/snippets/Tutorial_SlicingCol.cpp | 2 +- doc/snippets/Tutorial_SlicingVec.cpp | 2 +- doc/snippets/Tutorial_range_for_loop_1d_cxx11.cpp | 2 +- doc/snippets/Tutorial_range_for_loop_2d_cxx11.cpp | 2 +- doc/snippets/Tutorial_reshaped_vs_resize_1.cpp | 2 +- doc/snippets/Tutorial_std_sort.cpp | 2 +- doc/snippets/Tutorial_std_sort_rows_cxx11.cpp | 2 +- doc/snippets/tut_arithmetic_transpose_aliasing.cpp | 2 +- doc/snippets/tut_arithmetic_transpose_inplace.cpp | 2 +- 31 files changed, 31 insertions(+), 31 deletions(-) (limited to 'doc') diff --git a/doc/eigendoxy.css b/doc/eigendoxy.css index 6148655f3..4e9d7d120 100644 --- a/doc/eigendoxy.css +++ b/doc/eigendoxy.css @@ -232,4 +232,4 @@ td.width20em p.endtd { /* needed for huge screens */ .ui-resizable-e { background-repeat: repeat-y; -} \ No newline at end of file +} diff --git a/doc/snippets/Array_initializer_list_23_cxx11.cpp b/doc/snippets/Array_initializer_list_23_cxx11.cpp index 1ea32dd80..2c2166eab 100644 --- a/doc/snippets/Array_initializer_list_23_cxx11.cpp +++ b/doc/snippets/Array_initializer_list_23_cxx11.cpp @@ -2,4 +2,4 @@ ArrayXXi a { {1, 2, 3}, {3, 4, 5} }; -cout << a << endl; \ No newline at end of file +cout << a << endl; diff --git a/doc/snippets/Array_initializer_list_vector_cxx11.cpp b/doc/snippets/Array_initializer_list_vector_cxx11.cpp index e38b61e95..a668d84ac 100644 --- a/doc/snippets/Array_initializer_list_vector_cxx11.cpp +++ b/doc/snippets/Array_initializer_list_vector_cxx11.cpp @@ -1,2 +1,2 @@ Array v {{1, 2, 3, 4, 5}}; -cout << v << endl; \ No newline at end of file +cout << v << endl; diff --git a/doc/snippets/Array_variadic_ctor_cxx11.cpp b/doc/snippets/Array_variadic_ctor_cxx11.cpp index 234c7a720..0e4ec4469 100644 --- a/doc/snippets/Array_variadic_ctor_cxx11.cpp +++ b/doc/snippets/Array_variadic_ctor_cxx11.cpp @@ -1,3 +1,3 @@ Array a(1, 2, 3, 4, 5, 6); Array b {1, 2, 3}; -cout << a << "\n\n" << b << endl; \ No newline at end of file +cout << a << "\n\n" << b << endl; diff --git a/doc/snippets/BiCGSTAB_simple.cpp b/doc/snippets/BiCGSTAB_simple.cpp index 5520f4f1f..8c8829fd3 100644 --- a/doc/snippets/BiCGSTAB_simple.cpp +++ b/doc/snippets/BiCGSTAB_simple.cpp @@ -8,4 +8,4 @@ std::cout << "#iterations: " << solver.iterations() << std::endl; std::cout << "estimated error: " << solver.error() << std::endl; /* ... update b ... */ - x = solver.solve(b); // solve again \ No newline at end of file + x = solver.solve(b); // solve again diff --git a/doc/snippets/BiCGSTAB_step_by_step.cpp b/doc/snippets/BiCGSTAB_step_by_step.cpp index 06147bb81..6c95d5a9c 100644 --- a/doc/snippets/BiCGSTAB_step_by_step.cpp +++ b/doc/snippets/BiCGSTAB_step_by_step.cpp @@ -11,4 +11,4 @@ x = solver.solveWithGuess(b,x); std::cout << i << " : " << solver.error() << std::endl; ++i; - } while (solver.info()!=Success && i<100); \ No newline at end of file + } while (solver.info()!=Success && i<100); diff --git a/doc/snippets/Jacobi_makeGivens.cpp b/doc/snippets/Jacobi_makeGivens.cpp index 4b733c306..6f8ec054a 100644 --- a/doc/snippets/Jacobi_makeGivens.cpp +++ b/doc/snippets/Jacobi_makeGivens.cpp @@ -3,4 +3,4 @@ JacobiRotation G; G.makeGivens(v.x(), v.y()); cout << "Here is the vector v:" << endl << v << endl; v.applyOnTheLeft(0, 1, G.adjoint()); -cout << "Here is the vector J' * v:" << endl << v << endl; \ No newline at end of file +cout << "Here is the vector J' * v:" << endl << v << endl; diff --git a/doc/snippets/Jacobi_makeJacobi.cpp b/doc/snippets/Jacobi_makeJacobi.cpp index 0cc331d9f..a86e80a62 100644 --- a/doc/snippets/Jacobi_makeJacobi.cpp +++ b/doc/snippets/Jacobi_makeJacobi.cpp @@ -5,4 +5,4 @@ J.makeJacobi(m, 0, 1); cout << "Here is the matrix m:" << endl << m << endl; m.applyOnTheLeft(0, 1, J.adjoint()); m.applyOnTheRight(0, 1, J); -cout << "Here is the matrix J' * m * J:" << endl << m << endl; \ No newline at end of file +cout << "Here is the matrix J' * m * J:" << endl << m << endl; diff --git a/doc/snippets/Map_placement_new.cpp b/doc/snippets/Map_placement_new.cpp index 2e40eca32..83b83a893 100644 --- a/doc/snippets/Map_placement_new.cpp +++ b/doc/snippets/Map_placement_new.cpp @@ -2,4 +2,4 @@ int data[] = {1,2,3,4,5,6,7,8,9}; Map v(data,4); cout << "The mapped vector v is: " << v << "\n"; new (&v) Map(data+4,5); -cout << "Now v is: " << v << "\n"; \ No newline at end of file +cout << "Now v is: " << v << "\n"; diff --git a/doc/snippets/MatrixBase_colwise_iterator_cxx11.cpp b/doc/snippets/MatrixBase_colwise_iterator_cxx11.cpp index 88a9cd357..116063fb1 100644 --- a/doc/snippets/MatrixBase_colwise_iterator_cxx11.cpp +++ b/doc/snippets/MatrixBase_colwise_iterator_cxx11.cpp @@ -9,4 +9,4 @@ cout << "Here is the matrix m after the for-range-loop:" << endl << m << endl; auto cols = m.colwise(); auto it = std::find_if(cols.cbegin(), cols.cend(), [](Matrix3i::ConstColXpr x) { return x.squaredNorm() == 0; }); -cout << "The first empty column is: " << distance(cols.cbegin(),it) << endl; \ No newline at end of file +cout << "The first empty column is: " << distance(cols.cbegin(),it) << endl; diff --git a/doc/snippets/MatrixBase_hnormalized.cpp b/doc/snippets/MatrixBase_hnormalized.cpp index 652cd77c0..b714adcc3 100644 --- a/doc/snippets/MatrixBase_hnormalized.cpp +++ b/doc/snippets/MatrixBase_hnormalized.cpp @@ -3,4 +3,4 @@ Projective3d P(Matrix4d::Random()); cout << "v = " << v.transpose() << "]^T" << endl; cout << "v.hnormalized() = " << v.hnormalized().transpose() << "]^T" << endl; cout << "P*v = " << (P*v).transpose() << "]^T" << endl; -cout << "(P*v).hnormalized() = " << (P*v).hnormalized().transpose() << "]^T" << endl; \ No newline at end of file +cout << "(P*v).hnormalized() = " << (P*v).hnormalized().transpose() << "]^T" << endl; diff --git a/doc/snippets/MatrixBase_homogeneous.cpp b/doc/snippets/MatrixBase_homogeneous.cpp index 457c28f91..263196097 100644 --- a/doc/snippets/MatrixBase_homogeneous.cpp +++ b/doc/snippets/MatrixBase_homogeneous.cpp @@ -3,4 +3,4 @@ Projective3d P(Matrix4d::Random()); cout << "v = [" << v.transpose() << "]^T" << endl; cout << "h.homogeneous() = [" << v.homogeneous().transpose() << "]^T" << endl; cout << "(P * v.homogeneous()) = [" << (P * v.homogeneous()).transpose() << "]^T" << endl; -cout << "(P * v.homogeneous()).hnormalized() = [" << (P * v.homogeneous()).eval().hnormalized().transpose() << "]^T" << endl; \ No newline at end of file +cout << "(P * v.homogeneous()).hnormalized() = [" << (P * v.homogeneous()).eval().hnormalized().transpose() << "]^T" << endl; diff --git a/doc/snippets/Matrix_initializer_list_23_cxx11.cpp b/doc/snippets/Matrix_initializer_list_23_cxx11.cpp index d338d0253..60280ab58 100644 --- a/doc/snippets/Matrix_initializer_list_23_cxx11.cpp +++ b/doc/snippets/Matrix_initializer_list_23_cxx11.cpp @@ -2,4 +2,4 @@ MatrixXd m { {1, 2, 3}, {4, 5, 6} }; -cout << m << endl; \ No newline at end of file +cout << m << endl; diff --git a/doc/snippets/Matrix_initializer_list_vector_cxx11.cpp b/doc/snippets/Matrix_initializer_list_vector_cxx11.cpp index 8872e2cf3..325257cb0 100644 --- a/doc/snippets/Matrix_initializer_list_vector_cxx11.cpp +++ b/doc/snippets/Matrix_initializer_list_vector_cxx11.cpp @@ -1,2 +1,2 @@ VectorXi v {{1, 2}}; -cout << v << endl; \ No newline at end of file +cout << v << endl; diff --git a/doc/snippets/Matrix_variadic_ctor_cxx11.cpp b/doc/snippets/Matrix_variadic_ctor_cxx11.cpp index fcb4ccf88..06d33f571 100644 --- a/doc/snippets/Matrix_variadic_ctor_cxx11.cpp +++ b/doc/snippets/Matrix_variadic_ctor_cxx11.cpp @@ -1,3 +1,3 @@ Matrix a(1, 2, 3, 4, 5, 6); Matrix b {1, 2, 3}; -cout << a << "\n\n" << b << endl; \ No newline at end of file +cout << a << "\n\n" << b << endl; diff --git a/doc/snippets/Slicing_arrayexpr.cpp b/doc/snippets/Slicing_arrayexpr.cpp index 00b689b90..2df818098 100644 --- a/doc/snippets/Slicing_arrayexpr.cpp +++ b/doc/snippets/Slicing_arrayexpr.cpp @@ -1,4 +1,4 @@ ArrayXi ind(5); ind<<4,2,5,5,3; MatrixXi A = MatrixXi::Random(4,6); cout << "Initial matrix A:\n" << A << "\n\n"; -cout << "A(all,ind-1):\n" << A(all,ind-1) << "\n\n"; \ No newline at end of file +cout << "A(all,ind-1):\n" << A(all,ind-1) << "\n\n"; diff --git a/doc/snippets/Slicing_custom_padding_cxx11.cpp b/doc/snippets/Slicing_custom_padding_cxx11.cpp index 5dac3d7c9..24db98b7d 100644 --- a/doc/snippets/Slicing_custom_padding_cxx11.cpp +++ b/doc/snippets/Slicing_custom_padding_cxx11.cpp @@ -9,4 +9,4 @@ A.reshaped() = VectorXi::LinSpaced(9,1,9); cout << "Initial matrix A:\n" << A << "\n\n"; MatrixXi B(5,5); B = A(pad{3,5}, pad{3,5}); -cout << "A(pad{3,N}, pad{3,N}):\n" << B << "\n\n"; \ No newline at end of file +cout << "A(pad{3,N}, pad{3,N}):\n" << B << "\n\n"; diff --git a/doc/snippets/Slicing_rawarray_cxx11.cpp b/doc/snippets/Slicing_rawarray_cxx11.cpp index 0d3287a42..1087131ab 100644 --- a/doc/snippets/Slicing_rawarray_cxx11.cpp +++ b/doc/snippets/Slicing_rawarray_cxx11.cpp @@ -2,4 +2,4 @@ MatrixXi A = MatrixXi::Random(4,6); cout << "Initial matrix A:\n" << A << "\n\n"; cout << "A(all,{4,2,5,5,3}):\n" << A(all,{4,2,5,5,3}) << "\n\n"; -#endif \ No newline at end of file +#endif diff --git a/doc/snippets/Slicing_stdvector_cxx11.cpp b/doc/snippets/Slicing_stdvector_cxx11.cpp index 469651e38..555f6625f 100644 --- a/doc/snippets/Slicing_stdvector_cxx11.cpp +++ b/doc/snippets/Slicing_stdvector_cxx11.cpp @@ -1,4 +1,4 @@ std::vector ind{4,2,5,5,3}; MatrixXi A = MatrixXi::Random(4,6); cout << "Initial matrix A:\n" << A << "\n\n"; -cout << "A(all,ind):\n" << A(all,ind) << "\n\n"; \ No newline at end of file +cout << "A(all,ind):\n" << A(all,ind) << "\n\n"; diff --git a/doc/snippets/TopicAliasing_mult4.cpp b/doc/snippets/TopicAliasing_mult4.cpp index 8a8992f6c..01c1c6d77 100644 --- a/doc/snippets/TopicAliasing_mult4.cpp +++ b/doc/snippets/TopicAliasing_mult4.cpp @@ -2,4 +2,4 @@ MatrixXf A(2,2), B(3,2); B << 2, 0, 0, 3, 1, 1; A << 2, 0, 0, -2; A = (B * A).cwiseAbs(); -cout << A; \ No newline at end of file +cout << A; diff --git a/doc/snippets/Tutorial_ReshapeMat2Mat.cpp b/doc/snippets/Tutorial_ReshapeMat2Mat.cpp index f84d6e76d..737afecb8 100644 --- a/doc/snippets/Tutorial_ReshapeMat2Mat.cpp +++ b/doc/snippets/Tutorial_ReshapeMat2Mat.cpp @@ -3,4 +3,4 @@ M1 << 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12; Map M2(M1.data(), 6,2); -cout << "M2:" << endl << M2 << endl; \ No newline at end of file +cout << "M2:" << endl << M2 << endl; diff --git a/doc/snippets/Tutorial_ReshapeMat2Vec.cpp b/doc/snippets/Tutorial_ReshapeMat2Vec.cpp index 95bd4e0e6..32980a790 100644 --- a/doc/snippets/Tutorial_ReshapeMat2Vec.cpp +++ b/doc/snippets/Tutorial_ReshapeMat2Vec.cpp @@ -8,4 +8,4 @@ cout << "v1:" << endl << v1 << endl; Matrix M2(M1); Map v2(M2.data(), M2.size()); -cout << "v2:" << endl << v2 << endl; \ No newline at end of file +cout << "v2:" << endl << v2 << endl; diff --git a/doc/snippets/Tutorial_SlicingCol.cpp b/doc/snippets/Tutorial_SlicingCol.cpp index f667ff689..695d13014 100644 --- a/doc/snippets/Tutorial_SlicingCol.cpp +++ b/doc/snippets/Tutorial_SlicingCol.cpp @@ -8,4 +8,4 @@ RowMajorMatrixXf M3(M1); cout << "Row major input:" << endl << M3 << "\n"; Map > M4(M3.data(), M3.rows(), (M3.cols()+2)/3, Stride(M3.outerStride(),3)); -cout << "1 column over 3:" << endl << M4 << "\n"; \ No newline at end of file +cout << "1 column over 3:" << endl << M4 << "\n"; diff --git a/doc/snippets/Tutorial_SlicingVec.cpp b/doc/snippets/Tutorial_SlicingVec.cpp index 07e10bf69..9b822464d 100644 --- a/doc/snippets/Tutorial_SlicingVec.cpp +++ b/doc/snippets/Tutorial_SlicingVec.cpp @@ -1,4 +1,4 @@ RowVectorXf v = RowVectorXf::LinSpaced(20,0,19); cout << "Input:" << endl << v << endl; Map > v2(v.data(), v.size()/2); -cout << "Even:" << v2 << endl; \ No newline at end of file +cout << "Even:" << v2 << endl; diff --git a/doc/snippets/Tutorial_range_for_loop_1d_cxx11.cpp b/doc/snippets/Tutorial_range_for_loop_1d_cxx11.cpp index d8e582ad5..e72e715d8 100644 --- a/doc/snippets/Tutorial_range_for_loop_1d_cxx11.cpp +++ b/doc/snippets/Tutorial_range_for_loop_1d_cxx11.cpp @@ -1,4 +1,4 @@ VectorXi v = VectorXi::Random(4); cout << "Here is the vector v:\n"; for(auto x : v) cout << x << " "; -cout << "\n"; \ No newline at end of file +cout << "\n"; diff --git a/doc/snippets/Tutorial_range_for_loop_2d_cxx11.cpp b/doc/snippets/Tutorial_range_for_loop_2d_cxx11.cpp index 7e532d3c8..4a12d26c7 100644 --- a/doc/snippets/Tutorial_range_for_loop_2d_cxx11.cpp +++ b/doc/snippets/Tutorial_range_for_loop_2d_cxx11.cpp @@ -2,4 +2,4 @@ Matrix2i A = Matrix2i::Random(); cout << "Here are the coeffs of the 2x2 matrix A:\n"; for(auto x : A.reshaped()) cout << x << " "; -cout << "\n"; \ No newline at end of file +cout << "\n"; diff --git a/doc/snippets/Tutorial_reshaped_vs_resize_1.cpp b/doc/snippets/Tutorial_reshaped_vs_resize_1.cpp index 686b96c38..e520e8e6b 100644 --- a/doc/snippets/Tutorial_reshaped_vs_resize_1.cpp +++ b/doc/snippets/Tutorial_reshaped_vs_resize_1.cpp @@ -2,4 +2,4 @@ MatrixXi m = Matrix4i::Random(); cout << "Here is the matrix m:" << endl << m << endl; cout << "Here is m.reshaped(2, 8):" << endl << m.reshaped(2, 8) << endl; m.resize(2,8); -cout << "Here is the matrix m after m.resize(2,8):" << endl << m << endl; \ No newline at end of file +cout << "Here is the matrix m after m.resize(2,8):" << endl << m << endl; diff --git a/doc/snippets/Tutorial_std_sort.cpp b/doc/snippets/Tutorial_std_sort.cpp index 8f893684a..cde2a6f1b 100644 --- a/doc/snippets/Tutorial_std_sort.cpp +++ b/doc/snippets/Tutorial_std_sort.cpp @@ -1,4 +1,4 @@ Array4i v = Array4i::Random().abs(); cout << "Here is the initial vector v:\n" << v.transpose() << "\n"; std::sort(v.begin(), v.end()); -cout << "Here is the sorted vector v:\n" << v.transpose() << "\n"; \ No newline at end of file +cout << "Here is the sorted vector v:\n" << v.transpose() << "\n"; diff --git a/doc/snippets/Tutorial_std_sort_rows_cxx11.cpp b/doc/snippets/Tutorial_std_sort_rows_cxx11.cpp index fdd850d13..03641603d 100644 --- a/doc/snippets/Tutorial_std_sort_rows_cxx11.cpp +++ b/doc/snippets/Tutorial_std_sort_rows_cxx11.cpp @@ -2,4 +2,4 @@ ArrayXXi A = ArrayXXi::Random(4,4).abs(); cout << "Here is the initial matrix A:\n" << A << "\n"; for(auto row : A.rowwise()) std::sort(row.begin(), row.end()); -cout << "Here is the sorted matrix A:\n" << A << "\n"; \ No newline at end of file +cout << "Here is the sorted matrix A:\n" << A << "\n"; diff --git a/doc/snippets/tut_arithmetic_transpose_aliasing.cpp b/doc/snippets/tut_arithmetic_transpose_aliasing.cpp index c8e4746d0..f82e6f2ac 100644 --- a/doc/snippets/tut_arithmetic_transpose_aliasing.cpp +++ b/doc/snippets/tut_arithmetic_transpose_aliasing.cpp @@ -2,4 +2,4 @@ Matrix2i a; a << 1, 2, 3, 4; cout << "Here is the matrix a:\n" << a << endl; a = a.transpose(); // !!! do NOT do this !!! -cout << "and the result of the aliasing effect:\n" << a << endl; \ No newline at end of file +cout << "and the result of the aliasing effect:\n" << a << endl; diff --git a/doc/snippets/tut_arithmetic_transpose_inplace.cpp b/doc/snippets/tut_arithmetic_transpose_inplace.cpp index 7a069ff23..5c81c9e02 100644 --- a/doc/snippets/tut_arithmetic_transpose_inplace.cpp +++ b/doc/snippets/tut_arithmetic_transpose_inplace.cpp @@ -3,4 +3,4 @@ cout << "Here is the initial matrix a:\n" << a << endl; a.transposeInPlace(); -cout << "and after being transposed:\n" << a << endl; \ No newline at end of file +cout << "and after being transposed:\n" << a << endl; -- cgit v1.2.3