TensorStriding.h
Go to the documentation of this file.
1 // This file is part of Eigen, a lightweight C++ template library
2 // for linear algebra.
3 //
4 // Copyright (C) 2014 Benoit Steiner <benoit.steiner.goog@gmail.com>
5 //
6 // This Source Code Form is subject to the terms of the Mozilla
7 // Public License v. 2.0. If a copy of the MPL was not distributed
8 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 
10 #ifndef EIGEN_CXX11_TENSOR_TENSOR_STRIDING_H
11 #define EIGEN_CXX11_TENSOR_TENSOR_STRIDING_H
12 
13 namespace Eigen {
14 
22 namespace internal {
23 template<typename Strides, typename XprType>
24 struct traits<TensorStridingOp<Strides, XprType> > : public traits<XprType>
25 {
26  typedef typename XprType::Scalar Scalar;
28  typedef typename XprTraits::StorageKind StorageKind;
29  typedef typename XprTraits::Index Index;
30  typedef typename XprType::Nested Nested;
32  static const int NumDimensions = XprTraits::NumDimensions;
33  static const int Layout = XprTraits::Layout;
34  typedef typename XprTraits::PointerType PointerType;
35 };
36 
37 template<typename Strides, typename XprType>
39 {
41 };
42 
43 template<typename Strides, typename XprType>
44 struct nested<TensorStridingOp<Strides, XprType>, 1, typename eval<TensorStridingOp<Strides, XprType> >::type>
45 {
47 };
48 
49 } // end namespace internal
50 
51 
52 
53 template<typename Strides, typename XprType>
54 class TensorStridingOp : public TensorBase<TensorStridingOp<Strides, XprType> >
55 {
56  public:
60  typedef typename XprType::CoeffReturnType CoeffReturnType;
64 
66  : m_xpr(expr), m_dims(dims) {}
67 
69  const Strides& strides() const { return m_dims; }
70 
73  expression() const { return m_xpr; }
74 
76 
77  protected:
78  typename XprType::Nested m_xpr;
79  const Strides m_dims;
80 };
81 
82 
83 // Eval as rvalue
84 template<typename Strides, typename ArgType, typename Device>
85 struct TensorEvaluator<const TensorStridingOp<Strides, ArgType>, Device>
86 {
88  typedef typename XprType::Index Index;
91  typedef typename XprType::Scalar Scalar;
97 
98  enum {
99  IsAligned = /*TensorEvaluator<ArgType, Device>::IsAligned*/false,
101  BlockAccess = false,
104  CoordAccess = false, // to be implemented
105  RawAccess = false
106  };
107 
108  //===- Tensor block evaluation strategy (see TensorBlock.h) -------------===//
110  //===--------------------------------------------------------------------===//
111 
112  EIGEN_STRONG_INLINE TensorEvaluator(const XprType& op, const Device& device)
113  : m_impl(op.expression(), device)
114  {
115  m_dimensions = m_impl.dimensions();
116  for (int i = 0; i < NumDims; ++i) {
117  m_dimensions[i] =Eigen::numext::ceil(static_cast<float>(m_dimensions[i]) / op.strides()[i]);
118  }
119 
120  const typename TensorEvaluator<ArgType, Device>::Dimensions& input_dims = m_impl.dimensions();
121  if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
122  m_outputStrides[0] = 1;
123  m_inputStrides[0] = 1;
124  for (int i = 1; i < NumDims; ++i) {
125  m_outputStrides[i] = m_outputStrides[i-1] * m_dimensions[i-1];
126  m_inputStrides[i] = m_inputStrides[i-1] * input_dims[i-1];
127  m_inputStrides[i-1] *= op.strides()[i-1];
128  }
129  m_inputStrides[NumDims-1] *= op.strides()[NumDims-1];
130  } else { // RowMajor
131  m_outputStrides[NumDims-1] = 1;
132  m_inputStrides[NumDims-1] = 1;
133  for (int i = NumDims - 2; i >= 0; --i) {
134  m_outputStrides[i] = m_outputStrides[i+1] * m_dimensions[i+1];
135  m_inputStrides[i] = m_inputStrides[i+1] * input_dims[i+1];
136  m_inputStrides[i+1] *= op.strides()[i+1];
137  }
138  m_inputStrides[0] *= op.strides()[0];
139  }
140  }
141 
142 
143  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Dimensions& dimensions() const { return m_dimensions; }
144 
146  m_impl.evalSubExprsIfNeeded(NULL);
147  return true;
148  }
150  m_impl.cleanup();
151  }
152 
154  {
155  return m_impl.coeff(srcCoeff(index));
156  }
157 
158  template<int LoadMode>
160  {
161  EIGEN_STATIC_ASSERT((PacketSize > 1), YOU_MADE_A_PROGRAMMING_MISTAKE)
162  eigen_assert(index+PacketSize-1 < dimensions().TotalSize());
163 
164  Index inputIndices[] = {0, 0};
165  Index indices[] = {index, index + PacketSize - 1};
166  if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
168  for (int i = NumDims - 1; i > 0; --i) {
169  const Index idx0 = indices[0] / m_outputStrides[i];
170  const Index idx1 = indices[1] / m_outputStrides[i];
171  inputIndices[0] += idx0 * m_inputStrides[i];
172  inputIndices[1] += idx1 * m_inputStrides[i];
173  indices[0] -= idx0 * m_outputStrides[i];
174  indices[1] -= idx1 * m_outputStrides[i];
175  }
176  inputIndices[0] += indices[0] * m_inputStrides[0];
177  inputIndices[1] += indices[1] * m_inputStrides[0];
178  } else { // RowMajor
180  for (int i = 0; i < NumDims - 1; ++i) {
181  const Index idx0 = indices[0] / m_outputStrides[i];
182  const Index idx1 = indices[1] / m_outputStrides[i];
183  inputIndices[0] += idx0 * m_inputStrides[i];
184  inputIndices[1] += idx1 * m_inputStrides[i];
185  indices[0] -= idx0 * m_outputStrides[i];
186  indices[1] -= idx1 * m_outputStrides[i];
187  }
188  inputIndices[0] += indices[0] * m_inputStrides[NumDims-1];
189  inputIndices[1] += indices[1] * m_inputStrides[NumDims-1];
190  }
191  if (inputIndices[1] - inputIndices[0] == PacketSize - 1) {
192  PacketReturnType rslt = m_impl.template packet<Unaligned>(inputIndices[0]);
193  return rslt;
194  }
195  else {
197  values[0] = m_impl.coeff(inputIndices[0]);
198  values[PacketSize-1] = m_impl.coeff(inputIndices[1]);
200  for (int i = 1; i < PacketSize-1; ++i) {
201  values[i] = coeff(index+i);
202  }
203  PacketReturnType rslt = internal::pload<PacketReturnType>(values);
204  return rslt;
205  }
206  }
207 
209  double compute_cost = (NumDims - 1) * (TensorOpCost::AddCost<Index>() +
210  TensorOpCost::MulCost<Index>() +
211  TensorOpCost::DivCost<Index>()) +
212  TensorOpCost::MulCost<Index>();
213  if (vectorized) {
214  compute_cost *= 2; // packet() computes two indices
215  }
216  const int innerDim = (static_cast<int>(Layout) == static_cast<int>(ColMajor)) ? 0 : (NumDims - 1);
217  return m_impl.costPerCoeff(vectorized && m_inputStrides[innerDim] == 1) +
218  // Computation is not vectorized per se, but it is done once per packet.
219  TensorOpCost(0, 0, compute_cost, vectorized, PacketSize);
220  }
221 
222  EIGEN_DEVICE_FUNC typename Storage::Type data() const { return NULL; }
223 
224 #ifdef EIGEN_USE_SYCL
225  // binding placeholder accessors to a command group handler for SYCL
226  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void bind(cl::sycl::handler &cgh) const {
227  m_impl.bind(cgh);
228  }
229 #endif
230  protected:
232  {
233  Index inputIndex = 0;
234  if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
236  for (int i = NumDims - 1; i > 0; --i) {
237  const Index idx = index / m_outputStrides[i];
238  inputIndex += idx * m_inputStrides[i];
239  index -= idx * m_outputStrides[i];
240  }
241  inputIndex += index * m_inputStrides[0];
242  } else { // RowMajor
244  for (int i = 0; i < NumDims - 1; ++i) {
245  const Index idx = index / m_outputStrides[i];
246  inputIndex += idx * m_inputStrides[i];
247  index -= idx * m_outputStrides[i];
248  }
249  inputIndex += index * m_inputStrides[NumDims-1];
250  }
251  return inputIndex;
252  }
253 
258 };
259 
260 // Eval as lvalue
261 template<typename Strides, typename ArgType, typename Device>
262 struct TensorEvaluator<TensorStridingOp<Strides, ArgType>, Device>
263  : public TensorEvaluator<const TensorStridingOp<Strides, ArgType>, Device>
264 {
267  // typedef typename XprType::Index Index;
269  // typedef DSizes<Index, NumDims> Dimensions;
270 
271  enum {
272  IsAligned = /*TensorEvaluator<ArgType, Device>::IsAligned*/false,
276  CoordAccess = false, // to be implemented
277  RawAccess = false
278  };
279 
280  EIGEN_STRONG_INLINE TensorEvaluator(const XprType& op, const Device& device)
281  : Base(op, device) { }
282 
283  typedef typename XprType::Index Index;
284  typedef typename XprType::Scalar Scalar;
288 
290  {
291  return this->m_impl.coeffRef(this->srcCoeff(index));
292  }
293 
294  template <int StoreMode> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE
295  void writePacket(Index index, const PacketReturnType& x)
296  {
297  EIGEN_STATIC_ASSERT((PacketSize > 1), YOU_MADE_A_PROGRAMMING_MISTAKE)
298  eigen_assert(index+PacketSize-1 < this->dimensions().TotalSize());
299 
300  Index inputIndices[] = {0, 0};
301  Index indices[] = {index, index + PacketSize - 1};
302  if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
304  for (int i = NumDims - 1; i > 0; --i) {
305  const Index idx0 = indices[0] / this->m_outputStrides[i];
306  const Index idx1 = indices[1] / this->m_outputStrides[i];
307  inputIndices[0] += idx0 * this->m_inputStrides[i];
308  inputIndices[1] += idx1 * this->m_inputStrides[i];
309  indices[0] -= idx0 * this->m_outputStrides[i];
310  indices[1] -= idx1 * this->m_outputStrides[i];
311  }
312  inputIndices[0] += indices[0] * this->m_inputStrides[0];
313  inputIndices[1] += indices[1] * this->m_inputStrides[0];
314  } else { // RowMajor
316  for (int i = 0; i < NumDims - 1; ++i) {
317  const Index idx0 = indices[0] / this->m_outputStrides[i];
318  const Index idx1 = indices[1] / this->m_outputStrides[i];
319  inputIndices[0] += idx0 * this->m_inputStrides[i];
320  inputIndices[1] += idx1 * this->m_inputStrides[i];
321  indices[0] -= idx0 * this->m_outputStrides[i];
322  indices[1] -= idx1 * this->m_outputStrides[i];
323  }
324  inputIndices[0] += indices[0] * this->m_inputStrides[NumDims-1];
325  inputIndices[1] += indices[1] * this->m_inputStrides[NumDims-1];
326  }
327  if (inputIndices[1] - inputIndices[0] == PacketSize - 1) {
328  this->m_impl.template writePacket<Unaligned>(inputIndices[0], x);
329  }
330  else {
332  internal::pstore<Scalar, PacketReturnType>(values, x);
333  this->m_impl.coeffRef(inputIndices[0]) = values[0];
334  this->m_impl.coeffRef(inputIndices[1]) = values[PacketSize-1];
336  for (int i = 1; i < PacketSize-1; ++i) {
337  this->coeffRef(index+i) = values[i];
338  }
339  }
340  }
341 };
342 
343 
344 } // end namespace Eigen
345 
346 #endif // EIGEN_CXX11_TENSOR_TENSOR_STRIDING_H
Eigen::TensorEvaluator::dimensions
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Dimensions & dimensions() const
Definition: TensorEvaluator.h:73
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::PacketReturnType
PacketType< CoeffReturnType, Device >::type PacketReturnType
Definition: TensorStriding.h:93
Eigen::TensorStridingOp::CoeffReturnType
XprType::CoeffReturnType CoeffReturnType
Definition: TensorStriding.h:60
EIGEN_DEVICE_FUNC
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:976
Eigen
Namespace containing all symbols from the Eigen library.
Definition: jet.h:637
Eigen::TensorStridingOp::TensorStridingOp
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorStridingOp(const XprType &expr, const Strides &dims)
Definition: TensorStriding.h:65
Eigen::internal::TensorBlockNotImplemented
Definition: TensorBlock.h:617
Eigen::CwiseBinaryOp
Generic expression where a coefficient-wise binary operator is applied to two expressions.
Definition: CwiseBinaryOp.h:77
Eigen::array< Index, NumDims >
Eigen::internal::nested
Definition: TensorTraits.h:174
Eigen::TensorStridingOp::m_xpr
XprType::Nested m_xpr
Definition: TensorStriding.h:78
eigen_assert
#define eigen_assert(x)
Definition: Macros.h:1037
Eigen::internal::traits< TensorStridingOp< Strides, XprType > >::StorageKind
XprTraits::StorageKind StorageKind
Definition: TensorStriding.h:28
Eigen::numext::ceil
EIGEN_DEVICE_FUNC T() ceil(const T &x)
Definition: Eigen/src/Core/MathFunctions.h:1422
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::costPerCoeff
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorOpCost costPerCoeff(bool vectorized) const
Definition: TensorStriding.h:208
x
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
Definition: gnuplot_common_settings.hh:12
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::coeff
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoeffReturnType coeff(Index index) const
Definition: TensorStriding.h:153
Eigen::TensorEvaluator::Layout
@ Layout
Definition: TensorEvaluator.h:50
Eigen::TensorEvaluator< TensorStridingOp< Strides, ArgType >, Device >::TensorEvaluator
EIGEN_STRONG_INLINE TensorEvaluator(const XprType &op, const Device &device)
Definition: TensorStriding.h:280
different_sigmas::values
HybridValues values
Definition: testHybridBayesNet.cpp:245
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::Storage
StorageMemory< CoeffReturnType, Device > Storage
Definition: TensorStriding.h:95
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::EvaluatorPointerType
Storage::Type EvaluatorPointerType
Definition: TensorStriding.h:96
Eigen::TensorStridingOp::m_dims
const Strides m_dims
Definition: TensorStriding.h:79
Eigen::TensorEvaluator< TensorStridingOp< Strides, ArgType >, Device >::Index
XprType::Index Index
Definition: TensorStriding.h:283
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::evalSubExprsIfNeeded
EIGEN_STRONG_INLINE bool evalSubExprsIfNeeded(EvaluatorPointerType)
Definition: TensorStriding.h:145
Eigen::internal::traits< TensorStridingOp< Strides, XprType > >::XprTraits
traits< XprType > XprTraits
Definition: TensorStriding.h:27
Eigen::TensorEvaluator::PacketSize
static const int PacketSize
Definition: TensorEvaluator.h:36
Eigen::DSizes< Index, NumDims >
test_eigen_tensor.indices
indices
Definition: test_eigen_tensor.py:33
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::srcCoeff
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index srcCoeff(Index index) const
Definition: TensorStriding.h:231
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::cleanup
EIGEN_STRONG_INLINE void cleanup()
Definition: TensorStriding.h:149
EIGEN_ALIGN_MAX
#define EIGEN_ALIGN_MAX
Definition: ConfigureVectorization.h:157
Eigen::TensorStridingOp::Base
TensorBase< TensorStridingOp< Strides, XprType > > Base
Definition: TensorStriding.h:57
Eigen::PacketType
Definition: TensorMeta.h:50
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::Dimensions
DSizes< Index, NumDims > Dimensions
Definition: TensorStriding.h:90
Eigen::TensorStridingOp::Scalar
Eigen::internal::traits< TensorStridingOp >::Scalar Scalar
Definition: TensorStriding.h:58
Eigen::internal::true_type
Definition: Meta.h:96
Eigen::internal::traits< TensorStridingOp< Strides, XprType > >::Nested
XprType::Nested Nested
Definition: TensorStriding.h:30
Eigen::TensorStridingOp::Nested
Eigen::internal::nested< TensorStridingOp >::type Nested
Definition: TensorStriding.h:61
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::dimensions
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Dimensions & dimensions() const
Definition: TensorStriding.h:143
Eigen::TensorEvaluator< TensorStridingOp< Strides, ArgType >, Device >::coeffRef
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & coeffRef(Index index)
Definition: TensorStriding.h:289
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::packet
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE PacketReturnType packet(Index index) const
Definition: TensorStriding.h:159
Eigen::internal::traits< TensorStridingOp< Strides, XprType > >::_Nested
remove_reference< Nested >::type _Nested
Definition: TensorStriding.h:31
Eigen::TensorEvaluator< TensorStridingOp< Strides, ArgType >, Device >::writePacket
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void writePacket(Index index, const PacketReturnType &x)
Definition: TensorStriding.h:295
EIGEN_STRONG_INLINE
#define EIGEN_STRONG_INLINE
Definition: Macros.h:917
EIGEN_UNROLL_LOOP
#define EIGEN_UNROLL_LOOP
Definition: Macros.h:1461
Eigen::TensorStridingOp
Definition: TensorForwardDeclarations.h:82
Eigen::TensorEvaluator::PreferBlockAccess
@ PreferBlockAccess
Definition: TensorEvaluator.h:49
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::XprType
TensorStridingOp< Strides, ArgType > XprType
Definition: TensorStriding.h:87
Eigen::internal::nested< TensorStridingOp< Strides, XprType >, 1, typename eval< TensorStridingOp< Strides, XprType > >::type >::type
TensorStridingOp< Strides, XprType > type
Definition: TensorStriding.h:46
Eigen::TensorEvaluator< TensorStridingOp< Strides, ArgType >, Device >::Scalar
XprType::Scalar Scalar
Definition: TensorStriding.h:284
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::TensorEvaluator
EIGEN_STRONG_INLINE TensorEvaluator(const XprType &op, const Device &device)
Definition: TensorStriding.h:112
Eigen::internal::traits< TensorStridingOp< Strides, XprType > >::Scalar
XprType::Scalar Scalar
Definition: TensorStriding.h:26
Eigen::Triplet< double >
Eigen::StorageMemory
Definition: TensorForwardDeclarations.h:37
Eigen::internal::traits< TensorStridingOp< Strides, XprType > >::Index
XprTraits::Index Index
Definition: TensorStriding.h:29
Eigen::TensorBase
The tensor base class.
Definition: TensorBase.h:973
Eigen::TensorEvaluator< TensorStridingOp< Strides, ArgType >, Device >::PacketReturnType
PacketType< CoeffReturnType, Device >::type PacketReturnType
Definition: TensorStriding.h:286
Eigen::internal::array_size
Definition: Meta.h:445
Eigen::TensorEvaluator::BlockAccess
@ BlockAccess
Definition: TensorEvaluator.h:48
Eigen::TensorEvaluator::coeffRef
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoeffReturnType & coeffRef(Index index)
Definition: TensorEvaluator.h:99
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::data
EIGEN_DEVICE_FUNC Storage::Type data() const
Definition: TensorStriding.h:222
Eigen::TensorEvaluator< TensorStridingOp< Strides, ArgType >, Device >::XprType
TensorStridingOp< Strides, ArgType > XprType
Definition: TensorStriding.h:265
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::Index
XprType::Index Index
Definition: TensorStriding.h:88
EIGEN_TENSOR_INHERIT_ASSIGNMENT_OPERATORS
#define EIGEN_TENSOR_INHERIT_ASSIGNMENT_OPERATORS(Derived)
Definition: TensorMacros.h:94
Eigen::TensorStridingOp::StorageKind
Eigen::internal::traits< TensorStridingOp >::StorageKind StorageKind
Definition: TensorStriding.h:62
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::m_dimensions
Dimensions m_dimensions
Definition: TensorStriding.h:254
Eigen::internal::traits
Definition: ForwardDeclarations.h:17
EIGEN_STATIC_ASSERT
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
Definition: StaticAssert.h:127
Eigen::TensorEvaluator< TensorStridingOp< Strides, ArgType >, Device >::Base
TensorEvaluator< const XprType, Device > Base
Definition: TensorStriding.h:266
Eigen::internal::traits< TensorStridingOp< Strides, XprType > >::PointerType
XprTraits::PointerType PointerType
Definition: TensorStriding.h:34
Eigen::TensorStridingOp::expression
const EIGEN_DEVICE_FUNC internal::remove_all< typename XprType::Nested >::type & expression() const
Definition: TensorStriding.h:73
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::m_inputStrides
array< Index, NumDims > m_inputStrides
Definition: TensorStriding.h:256
Eigen::TensorEvaluator< TensorStridingOp< Strides, ArgType >, Device >::CoeffReturnType
XprType::CoeffReturnType CoeffReturnType
Definition: TensorStriding.h:285
Eigen::TensorEvaluator::coeff
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoeffReturnType coeff(Index index) const
Definition: TensorEvaluator.h:94
EIGEN_DEVICE_REF
#define EIGEN_DEVICE_REF
Definition: TensorMacros.h:50
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::Scalar
XprType::Scalar Scalar
Definition: TensorStriding.h:91
Eigen::TensorEvaluator
A cost model used to limit the number of threads used for evaluating tensor expression.
Definition: TensorEvaluator.h:28
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::m_impl
TensorEvaluator< ArgType, Device > m_impl
Definition: TensorStriding.h:257
internal
Definition: BandTriangularSolver.h:13
NULL
#define NULL
Definition: ccolamd.c:609
Eigen::ColMajor
@ ColMajor
Definition: Constants.h:319
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::m_outputStrides
array< Index, NumDims > m_outputStrides
Definition: TensorStriding.h:255
Eigen::TensorEvaluator::IsAligned
@ IsAligned
Definition: TensorEvaluator.h:46
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::TensorBlock
internal::TensorBlockNotImplemented TensorBlock
Definition: TensorStriding.h:109
Eigen::internal::eval
Definition: XprHelper.h:332
Eigen::TensorEvaluator::PacketAccess
@ PacketAccess
Definition: TensorEvaluator.h:47
Eigen::TensorStridingOp::strides
const EIGEN_DEVICE_FUNC Strides & strides() const
Definition: TensorStriding.h:69
Eigen::TensorEvaluator< const TensorStridingOp< Strides, ArgType >, Device >::CoeffReturnType
XprType::CoeffReturnType CoeffReturnType
Definition: TensorStriding.h:92
Eigen::TensorOpCost
Definition: TensorCostModel.h:25
test_callbacks.value
value
Definition: test_callbacks.py:160
Eigen::internal::eval< TensorStridingOp< Strides, XprType >, Eigen::Dense >::type
const typedef TensorStridingOp< Strides, XprType > EIGEN_DEVICE_REF type
Definition: TensorStriding.h:40
i
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Eigen::TensorStridingOp::RealScalar
Eigen::NumTraits< Scalar >::Real RealScalar
Definition: TensorStriding.h:59
Scalar
SCALAR Scalar
Definition: bench_gemm.cpp:46
Eigen::Index
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74
Eigen::TensorStridingOp::Index
Eigen::internal::traits< TensorStridingOp >::Index Index
Definition: TensorStriding.h:63
Eigen::Dense
Definition: Constants.h:507


gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:39:21