Advertisement
nordlaender

Eigen Tensor multiplication

Apr 10th, 2017
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 12.27 KB | None | 0 0
  1. [ 50%] Building CXX object CMakeFiles/sandbox.dir/src/SandBox/sandbox.cpp.o
  2. In file included from /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/Tensor:106:0,
  3.                  from /home/lars/programming/fsd_cpp/src/SandBox/sandbox.cpp:3:
  4. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h: In instantiation of ‘struct Eigen::internal::traits<Eigen::TensorCwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::Tensor<double, 3>, const int> >’:
  5. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h:31:44:   required from ‘class Eigen::TensorBase<Eigen::TensorCwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::Tensor<double, 3>, const int>, 0>
  6. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h:187:7:   required from ‘class Eigen::TensorCwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::Tensor<double, 3>, const int>
  7. /home/lars/programming/fsd_cpp/src/SandBox/sandbox.cpp:30:9:   required from here
  8. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h:150:52: error: ‘const int’ is not a class, struct, or union type
  9.                 typename RhsXprType::Scalar)>::type Scalar;
  10.                                                     ^
  11. In file included from /opt/eigen333/include/eigen3/Eigen/Core:346:0,
  12.                  from /opt/eigen333/include/eigen3/Eigen/Dense:1,
  13.                  from /home/lars/programming/fsd_cpp/src/SandBox/sandbox.cpp:2:
  14. /opt/eigen333/include/eigen3/Eigen/src/Core/util/ForwardDeclarations.h: In instantiation of ‘struct Eigen::internal::traits<const int>’:
  15. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h:154:54:   required from ‘struct Eigen::internal::traits<Eigen::TensorCwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::Tensor<double, 3>, const int> >
  16. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h:31:44:   required from ‘class Eigen::TensorBase<Eigen::TensorCwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::Tensor<double, 3>, const int>, 0>
  17. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h:187:7:   required from ‘class Eigen::TensorCwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::Tensor<double, 3>, const int>
  18. /home/lars/programming/fsd_cpp/src/SandBox/sandbox.cpp:30:9:   required from here
  19. /opt/eigen333/include/eigen3/Eigen/src/Core/util/ForwardDeclarations.h:23:29: error: invalid use of incomplete type ‘struct Eigen::internal::traits<int>
  20.  template<typename T> struct traits<const T> : traits<T> {};
  21.                              ^
  22. /opt/eigen333/include/eigen3/Eigen/src/Core/util/ForwardDeclarations.h:17:29: note: declaration of ‘struct Eigen::internal::traits<int>
  23.  template<typename T> struct traits;
  24.                              ^
  25. In file included from /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/Tensor:106:0,
  26.                  from /home/lars/programming/fsd_cpp/src/SandBox/sandbox.cpp:3:
  27. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h: In instantiation of ‘struct Eigen::internal::traits<Eigen::TensorCwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::Tensor<double, 3>, const int> >’:
  28. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h:31:44:   required from ‘class Eigen::TensorBase<Eigen::TensorCwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::Tensor<double, 3>, const int>, 0>
  29. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h:187:7:   required from ‘class Eigen::TensorCwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::Tensor<double, 3>, const int>
  30. /home/lars/programming/fsd_cpp/src/SandBox/sandbox.cpp:30:9:   required from here
  31. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h:154:54: error: no type named ‘StorageKind’ in ‘struct Eigen::internal::traits<const int>
  32.        typename traits<RhsXprType>::StorageKind>::ret StorageKind;
  33.                                                       ^
  34. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h:157:49: error: no type named ‘Index’ in ‘struct Eigen::internal::traits<const int>
  35.        typename traits<RhsXprType>::Index>::type Index;
  36.                                                  ^
  37. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h:159:39: error: ‘const int’ is not a class, struct, or union type
  38.    typedef typename RhsXprType::Nested RhsNested;
  39.                                        ^
  40. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h:161:54: error: ‘const int’ is not a class, struct, or union type
  41.    typedef typename remove_reference<RhsNested>::type _RhsNested;
  42.                                                       ^
  43. In file included from /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/Tensor:106:0,
  44.                  from /home/lars/programming/fsd_cpp/src/SandBox/sandbox.cpp:3:
  45. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h: In instantiation of ‘class Eigen::TensorCwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::Tensor<double, 3>, const int>’:
  46. /home/lars/programming/fsd_cpp/src/SandBox/sandbox.cpp:30:9:   required from here
  47. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h:212:5: error: ‘const int’ is not a class, struct, or union type
  48.      rhsExpression() const { return m_rhs_xpr; }
  49.      ^
  50. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h:216:33: error: ‘const int’ is not a class, struct, or union type
  51.      typename RhsXprType::Nested m_rhs_xpr;
  52.                                  ^
  53. In file included from /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/Tensor:103:0,
  54.                  from /home/lars/programming/fsd_cpp/src/SandBox/sandbox.cpp:3:
  55. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h: In instantiation of ‘const Eigen::TensorCwiseBinaryOp<Eigen::internal::scalar_product_op<typename Eigen::internal::traits<T>::Scalar>, const Derived, const OtherDerived> Eigen::TensorBase<Derived, 0>::operator*(const OtherDerived&) const [with OtherDerived = int; Derived = Eigen::Tensor<double, 3>; typename Eigen::internal::traits<T>::Scalar = double]’:
  56. /home/lars/programming/fsd_cpp/src/SandBox/sandbox.cpp:30:9:   required from here
  57. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h:349:24: error: request for member ‘derived’ in ‘other’, which is of non-class type ‘const int’
  58.        return binaryExpr(other.derived(), internal::scalar_product_op<Scalar>());
  59.                         ^
  60. In file included from /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/Tensor:105:0,
  61.                  from /home/lars/programming/fsd_cpp/src/SandBox/sandbox.cpp:3:
  62. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h: In instantiation of ‘struct Eigen::TensorEvaluator<const int, Eigen::DefaultDevice>’:
  63. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h:366:65:   required from ‘struct Eigen::TensorEvaluator<const Eigen::TensorCwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::Tensor<double, 3>, const int>, Eigen::DefaultDevice>
  64. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorAssign.h:96:70:   required from ‘struct Eigen::TensorEvaluator<const Eigen::TensorAssignOp<Eigen::Tensor<double, 3>, const Eigen::TensorCwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::Tensor<double, 3>, const int> >, Eigen::DefaultDevice>
  65. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/Tensor.h:416:13:   required from ‘Eigen::Tensor<Scalar_, NumIndices_, Options_, IndexType>& Eigen::Tensor<Scalar_, NumIndices_, Options_, IndexType>::operator=(const OtherDerived&) [with OtherDerived = Eigen::TensorCwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::Tensor<double, 3>, const int>; Scalar_ = double; int NumIndices_ = 3; int Options_ = 0; IndexType_ = long int]
  66. /home/lars/programming/fsd_cpp/src/SandBox/sandbox.cpp:30:6:   required from here
  67. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h:150:35: error: ‘int’ is not a class, struct, or union type
  68.    typedef typename Derived::Index Index;
  69.                                    ^
  70. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h:151:36: error: ‘int’ is not a class, struct, or union type
  71.    typedef typename Derived::Scalar Scalar;
  72.                                     ^
  73. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h:152:36: error: ‘int’ is not a class, struct, or union type
  74.    typedef typename Derived::Scalar CoeffReturnType;
  75.                                     ^
  76. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h:153:62: error: ‘int’ is not a class, struct, or union type
  77.    typedef typename PacketType<CoeffReturnType, Device>::type PacketReturnType;
  78.                                                               ^
  79. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h:154:40: error: ‘int’ is not a class, struct, or union type
  80.    typedef typename Derived::Dimensions Dimensions;
  81.                                         ^
  82. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h:160:8: error: ‘IsAligned’ is not a member of ‘int’
  83.    enum {
  84.         ^
  85. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h:162:71: error: ‘int’ is not a class, struct, or union type
  86.      PacketAccess = (internal::unpacket_traits<PacketReturnType>::size > 1),
  87.                                                                        ^
  88. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h:160:8: error: ‘Layout’ is not a member of ‘int’
  89.    enum {
  90.         ^
  91. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h: In instantiation of ‘const int Eigen::TensorEvaluator<const int, Eigen::DefaultDevice>::NumCoords’:
  92. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h:164:29:   required from ‘struct Eigen::TensorEvaluator<const int, Eigen::DefaultDevice>
  93. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h:366:65:   required from ‘struct Eigen::TensorEvaluator<const Eigen::TensorCwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::Tensor<double, 3>, const int>, Eigen::DefaultDevice>
  94. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorAssign.h:96:70:   required from ‘struct Eigen::TensorEvaluator<const Eigen::TensorAssignOp<Eigen::Tensor<double, 3>, const Eigen::TensorCwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::Tensor<double, 3>, const int> >, Eigen::DefaultDevice>
  95. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/Tensor.h:416:13:   required from ‘Eigen::Tensor<Scalar_, NumIndices_, Options_, IndexType>& Eigen::Tensor<Scalar_, NumIndices_, Options_, IndexType>::operator=(const OtherDerived&) [with OtherDerived = Eigen::TensorCwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::Tensor<double, 3>, const int>; Scalar_ = double; int NumIndices_ = 3; int Options_ = 0; IndexType_ = long int]
  96. /home/lars/programming/fsd_cpp/src/SandBox/sandbox.cpp:30:6:   required from here
  97. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h:157:73: error: incomplete type ‘Eigen::internal::traits<int>’ used in nested name specifier
  98.    static const int NumCoords = internal::traits<Derived>::NumDimensions > 0 ?
  99.                                                                          ^
  100. /opt/eigen333/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h:157:77: error: incomplete type ‘Eigen::internal::traits<int>’ used in nested name specifier
  101.    static const int NumCoords = internal::traits<Derived>::NumDimensions > 0 ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement