12 #include <Eigen/CXX11/Tensor> 23 for (
int i = 0;
i < 3; ++
i) {
24 data1(
i) = std::complex<float>(
i, -
i);
25 data2(i) = std::complex<float>(
i, 7 *
i);
29 for (
int i = 0;
i < 3; ++
i) {
44 for (
int i = 0;
i < 3; ++
i) {
63 for (
int i = 0;
i < 3; ++
i) {
80 MapXcf m_left(t_left.
data(), 1500, 248);
81 MapXcf m_right(t_right.
data(), 248, 1400);
89 t_result = t_left.contract(t_right, dims);
90 m_result = m_left * m_right;
A matrix or vector expression mapping an existing array of data.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor< Scalar_, NumIndices_, Options_, IndexType_ > & setRandom()
EIGEN_DECLARE_TEST(cxx11_tensor_of_complex)
AnnoyingScalar conj(const AnnoyingScalar &x)
#define VERIFY_IS_APPROX(a, b)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Abs2ReturnType abs2() const
#define VERIFY_IS_EQUAL(a, b)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE DenseIndex TotalSize() const
A tensor expression mapping an existing array of data.
Tensor< float, 1 >::DimensionPair DimPair
static void test_contractions()
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar * data()
#define CALL_SUBTEST(FUNC)
static void test_additions()
static void test_conjugate()
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Dimensions & dimensions() const
The matrix class, also used for vectors and row-vectors.