Added mode lines for vi.

This commit is contained in:
jgoppert
2015-11-03 20:26:42 -05:00
parent b842f8d8a5
commit 49035ed6a9
20 changed files with 56 additions and 12 deletions
+7 -1
View File
@@ -2,8 +2,14 @@ language: cpp
compiler: compiler:
- gcc - gcc
script: mkdir build && cd build && cmake .. && ctest -V script:
- mkdir build
- cd build
- cmake ..
- ctest -V
os: os:
- linux - linux
- osx - osx
# vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 :
+2
View File
@@ -77,3 +77,5 @@ public:
typedef Dcm<float> Dcmf; typedef Dcm<float> Dcmf;
}; // namespace matrix }; // namespace matrix
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */
+2
View File
@@ -88,3 +88,5 @@ public:
typedef Euler<float> Eulerf; typedef Euler<float> Eulerf;
}; // namespace matrix }; // namespace matrix
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */
+2
View File
@@ -453,3 +453,5 @@ public:
typedef Matrix<float, 3, 3> Matrix3f; typedef Matrix<float, 3, 3> Matrix3f;
}; // namespace matrix }; // namespace matrix
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */
+2
View File
@@ -109,3 +109,5 @@ public:
typedef Quaternion<float> Quatf; typedef Quaternion<float> Quatf;
}; // namespace matrix }; // namespace matrix
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */
+2
View File
@@ -44,3 +44,5 @@ public:
typedef Scalar<float> Scalarf; typedef Scalar<float> Scalarf;
}; // namespace matrix }; // namespace matrix
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */
+2
View File
@@ -50,3 +50,5 @@ public:
}; };
}; // namespace matrix }; // namespace matrix
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */
+2
View File
@@ -45,3 +45,5 @@ public:
typedef Vector3<float> Vector3f; typedef Vector3<float> Vector3f;
}; // namespace matrix }; // namespace matrix
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */
+2
View File
@@ -11,3 +11,5 @@ int main()
Eulerf e = Eulerf(dcm); Eulerf e = Eulerf(dcm);
return 0; return 0;
} }
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */
+2
View File
@@ -16,3 +16,5 @@ int main()
(void)n; (void)n;
return 0; return 0;
} }
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */
+4 -2
View File
@@ -15,16 +15,18 @@ int main()
assert(A_I == A_I_check); assert(A_I == A_I_check);
// stess test // stess test
static const size_t n = 100; static const size_t n = 50;
Matrix<float, n, n> A_large; Matrix<float, n, n> A_large;
A_large.setIdentity(); A_large.setIdentity();
Matrix<float, n, n> A_large_I; Matrix<float, n, n> A_large_I;
A_large_I.setZero(); A_large_I.setZero();
for (size_t i = 0; i < 100; i++) { for (size_t i = 0; i < 50; i++) {
A_large_I = A_large.inverse(); A_large_I = A_large.inverse();
assert(A_large == A_large_I); assert(A_large == A_large_I);
} }
return 0; return 0;
} }
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */
+2
View File
@@ -27,3 +27,5 @@ int main()
return 0; return 0;
} }
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */
+2
View File
@@ -24,3 +24,5 @@ int main()
assert(R2 == I); assert(R2 == I);
return 0; return 0;
} }
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */
+7 -5
View File
@@ -9,10 +9,12 @@ int main()
float data[9] = {1, 2, 3, 4, 5, 6, 7, 8, 9}; float data[9] = {1, 2, 3, 4, 5, 6, 7, 8, 9};
Matrix3f A(data); Matrix3f A(data);
A = A * 2; A = A * 2;
//float data_check[9] = {2, 4, 6, 8, 10, 12, 14, 16, 18}; float data_check[9] = {2, 4, 6, 8, 10, 12, 14, 16, 18};
//Matrix3f A_check(data_check); Matrix3f A_check(data_check);
//A.print(); A.print();
//A_check.print(); A_check.print();
//assert(A == A_check); assert(A == A_check);
return 0; return 0;
} }
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */
+6 -4
View File
@@ -7,10 +7,10 @@ using namespace matrix;
int main() int main()
{ {
Quatf p(1, 2, 3, 4); Quatf p(1, 2, 3, 4);
assert(p(0) == 1); assert(p(0) == 1);
assert(p(1) == 2); assert(p(1) == 2);
assert(p(2) == 3); assert(p(2) == 3);
assert(p(3) == 100); assert(p(3) == 4);
Quatf q(0, 1, 0, 0); Quatf q(0, 1, 0, 0);
Quatf r = p*q; Quatf r = p*q;
@@ -18,3 +18,5 @@ int main()
Eulerf e = Eulerf(p); Eulerf e = Eulerf(p);
return 0; return 0;
} }
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */
+2
View File
@@ -21,3 +21,5 @@ int main()
return 0; return 0;
} }
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */
+2
View File
@@ -16,3 +16,5 @@ int main()
assert(A_T == A_T_check); assert(A_T == A_T_check);
return 0; return 0;
} }
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */
+2
View File
@@ -13,3 +13,5 @@ int main()
(void)r; (void)r;
return 0; return 0;
} }
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */
+2
View File
@@ -11,3 +11,5 @@ int main()
Vector3f c = a.cross(b); Vector3f c = a.cross(b);
return 0; return 0;
} }
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */
+2
View File
@@ -26,3 +26,5 @@ int main()
return 0; return 0;
} }
/* vim: set et fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : */