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,11 +11,10 @@
|
||||
|
||||
#include <Eigen/CXX11/Tensor>
|
||||
|
||||
using Eigen::Tensor;
|
||||
using Eigen::RowMajor;
|
||||
using Eigen::Tensor;
|
||||
|
||||
static void test_tanh()
|
||||
{
|
||||
static void test_tanh() {
|
||||
Tensor<float, 1> vec1(6);
|
||||
vec1.setRandom();
|
||||
|
||||
@@ -26,8 +25,7 @@ static void test_tanh()
|
||||
}
|
||||
}
|
||||
|
||||
static void test_sigmoid()
|
||||
{
|
||||
static void test_sigmoid() {
|
||||
Tensor<float, 1> vec1(6);
|
||||
vec1.setRandom();
|
||||
|
||||
@@ -38,9 +36,7 @@ static void test_sigmoid()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_math)
|
||||
{
|
||||
EIGEN_DECLARE_TEST(cxx11_tensor_math) {
|
||||
CALL_SUBTEST(test_tanh());
|
||||
CALL_SUBTEST(test_sigmoid());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user