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()
#define VERIFY_IS_APPROX(a, b)
#define VERIFY_IS_EQUAL(a, b)
A tensor expression mapping an existing array of data.
Tensor< float, 1 >::DimensionPair DimPair
static void test_contractions()
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE DenseIndex TotalSize() const
const mpreal sum(const mpreal tab[], const unsigned long int n, int &status, mp_rnd_t mode=mpreal::get_default_rnd())
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Abs2ReturnType abs2() const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar * data()
#define CALL_SUBTEST(FUNC)
static void test_additions()
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Dimensions & dimensions() const
static void test_conjugate()
The matrix class, also used for vectors and row-vectors.
void test_cxx11_tensor_of_complex()
ScalarWithExceptions conj(const ScalarWithExceptions &x)