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
@@ -11,9 +11,7 @@
|
||||
|
||||
#include <Eigen/CXX11/Tensor>
|
||||
|
||||
|
||||
static void test_empty_tensor()
|
||||
{
|
||||
static void test_empty_tensor() {
|
||||
Tensor<float, 2> source;
|
||||
Tensor<float, 2> tgt1 = source;
|
||||
Tensor<float, 2> tgt2(source);
|
||||
@@ -22,8 +20,7 @@ static void test_empty_tensor()
|
||||
tgt3 = tgt2;
|
||||
}
|
||||
|
||||
static void test_empty_fixed_size_tensor()
|
||||
{
|
||||
static void test_empty_fixed_size_tensor() {
|
||||
TensorFixedSize<float, Sizes<0> > source;
|
||||
TensorFixedSize<float, Sizes<0> > tgt1 = source;
|
||||
TensorFixedSize<float, Sizes<0> > tgt2(source);
|
||||
@@ -32,9 +29,7 @@ static void test_empty_fixed_size_tensor()
|
||||
tgt3 = tgt2;
|
||||
}
|
||||
|
||||
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_empty)
|
||||
{
|
||||
CALL_SUBTEST(test_empty_tensor());
|
||||
CALL_SUBTEST(test_empty_fixed_size_tensor());
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_empty) {
|
||||
CALL_SUBTEST(test_empty_tensor());
|
||||
CALL_SUBTEST(test_empty_fixed_size_tensor());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user