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
@@ -14,7 +14,7 @@
|
||||
template <typename Scalar, int rank, int Layout>
|
||||
struct test_tensor_ostream_impl {};
|
||||
|
||||
template<typename Scalar, int Layout>
|
||||
template <typename Scalar, int Layout>
|
||||
struct test_tensor_ostream_impl<Scalar, 0, Layout> {
|
||||
static void run() {
|
||||
Eigen::Tensor<Scalar, 0> t;
|
||||
@@ -25,7 +25,7 @@ struct test_tensor_ostream_impl<Scalar, 0, Layout> {
|
||||
}
|
||||
};
|
||||
|
||||
template<typename Scalar, int Layout>
|
||||
template <typename Scalar, int Layout>
|
||||
struct test_tensor_ostream_impl<Scalar, 1, Layout> {
|
||||
static void run() {
|
||||
Eigen::Tensor<Scalar, 1> t = {3};
|
||||
@@ -36,7 +36,7 @@ struct test_tensor_ostream_impl<Scalar, 1, Layout> {
|
||||
}
|
||||
};
|
||||
|
||||
template<typename Scalar, int Layout>
|
||||
template <typename Scalar, int Layout>
|
||||
struct test_tensor_ostream_impl<Scalar, 2, Layout> {
|
||||
static void run() {
|
||||
Eigen::Tensor<Scalar, 2> t = {3, 2};
|
||||
@@ -47,7 +47,7 @@ struct test_tensor_ostream_impl<Scalar, 2, Layout> {
|
||||
}
|
||||
};
|
||||
|
||||
template<typename Scalar, int Layout>
|
||||
template <typename Scalar, int Layout>
|
||||
struct test_tensor_ostream_impl<Scalar, 3, Layout> {
|
||||
static void run() {
|
||||
Eigen::Tensor<Scalar, 3> t = {4, 3, 2};
|
||||
@@ -61,7 +61,7 @@ struct test_tensor_ostream_impl<Scalar, 3, Layout> {
|
||||
}
|
||||
};
|
||||
|
||||
template<int Layout>
|
||||
template <int Layout>
|
||||
struct test_tensor_ostream_impl<bool, 2, Layout> {
|
||||
static void run() {
|
||||
Eigen::Tensor<bool, 2> t = {3, 2};
|
||||
@@ -72,7 +72,7 @@ struct test_tensor_ostream_impl<bool, 2, Layout> {
|
||||
}
|
||||
};
|
||||
|
||||
template<typename Scalar, int Layout>
|
||||
template <typename Scalar, int Layout>
|
||||
struct test_tensor_ostream_impl<std::complex<Scalar>, 2, Layout> {
|
||||
static void run() {
|
||||
Eigen::Tensor<std::complex<Scalar>, 2> t = {3, 2};
|
||||
|
||||
Reference in New Issue
Block a user