TensorGenerator.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) 2015 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_GENERATOR_H
11 #define EIGEN_CXX11_TENSOR_TENSOR_GENERATOR_H
12 
13 namespace Eigen {
14 
22 namespace internal {
23 template<typename Generator, typename XprType>
24 struct traits<TensorGeneratorOp<Generator, 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 Generator, typename XprType>
38 struct eval<TensorGeneratorOp<Generator, XprType>, Eigen::Dense>
39 {
41 };
42 
43 template<typename Generator, typename XprType>
44 struct nested<TensorGeneratorOp<Generator, XprType>, 1, typename eval<TensorGeneratorOp<Generator, XprType> >::type>
45 {
47 };
48 
49 } // end namespace internal
50 
51 
52 
53 template<typename Generator, typename XprType>
54 class TensorGeneratorOp : public TensorBase<TensorGeneratorOp<Generator, XprType>, ReadOnlyAccessors>
55 {
56  public:
59  typedef typename XprType::CoeffReturnType CoeffReturnType;
63 
65  : m_xpr(expr), m_generator(generator) {}
66 
68  const Generator& generator() const { return m_generator; }
69 
72  expression() const { return m_xpr; }
73 
74  protected:
75  typename XprType::Nested m_xpr;
76  const Generator m_generator;
77 };
78 
79 
80 // Eval as rvalue
81 template<typename Generator, typename ArgType, typename Device>
82 struct TensorEvaluator<const TensorGeneratorOp<Generator, ArgType>, Device>
83 {
85  typedef typename XprType::Index Index;
87  static const int NumDims = internal::array_size<Dimensions>::value;
88  typedef typename XprType::Scalar Scalar;
93  enum {
94  IsAligned = false,
96  BlockAccess = true,
99  CoordAccess = false, // to be implemented
100  RawAccess = false
101  };
102 
104 
105  //===- Tensor block evaluation strategy (see TensorBlock.h) -------------===//
108 
109  typedef typename internal::TensorMaterializedBlock<CoeffReturnType, NumDims,
110  Layout, Index>
112  //===--------------------------------------------------------------------===//
113 
114  EIGEN_STRONG_INLINE TensorEvaluator(const XprType& op, const Device& device)
115  : m_device(device), m_generator(op.generator())
116  {
117  TensorEvaluator<ArgType, Device> argImpl(op.expression(), device);
118  m_dimensions = argImpl.dimensions();
119 
120  if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
121  m_strides[0] = 1;
123  for (int i = 1; i < NumDims; ++i) {
124  m_strides[i] = m_strides[i - 1] * m_dimensions[i - 1];
125  if (m_strides[i] != 0) m_fast_strides[i] = IndexDivisor(m_strides[i]);
126  }
127  } else {
128  m_strides[NumDims - 1] = 1;
130  for (int i = NumDims - 2; i >= 0; --i) {
131  m_strides[i] = m_strides[i + 1] * m_dimensions[i + 1];
132  if (m_strides[i] != 0) m_fast_strides[i] = IndexDivisor(m_strides[i]);
133  }
134  }
135  }
136 
137  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Dimensions& dimensions() const { return m_dimensions; }
138 
140  return true;
141  }
143  }
144 
146  {
147  array<Index, NumDims> coords;
148  extract_coordinates(index, coords);
149  return m_generator(coords);
150  }
151 
152  template<int LoadMode>
154  {
155  const int packetSize = PacketType<CoeffReturnType, Device>::size;
156  EIGEN_STATIC_ASSERT((packetSize > 1), YOU_MADE_A_PROGRAMMING_MISTAKE)
157  eigen_assert(index+packetSize-1 < dimensions().TotalSize());
158 
160  for (int i = 0; i < packetSize; ++i) {
161  values[i] = coeff(index+i);
162  }
163  PacketReturnType rslt = internal::pload<PacketReturnType>(values);
164  return rslt;
165  }
166 
169  const size_t target_size = m_device.firstLevelCacheSize();
170  // TODO(ezhulenev): Generator should have a cost.
171  return internal::TensorBlockResourceRequirements::skewed<Scalar>(
172  target_size);
173  }
174 
175  struct BlockIteratorState {
180  };
181 
184  bool /*root_of_expr_ast*/ = false) const {
185  static const bool is_col_major =
186  static_cast<int>(Layout) == static_cast<int>(ColMajor);
187 
188  // Compute spatial coordinates for the first block element.
189  array<Index, NumDims> coords;
190  extract_coordinates(desc.offset(), coords);
191  array<Index, NumDims> initial_coords = coords;
192 
193  // Offset in the output block buffer.
194  Index offset = 0;
195 
196  // Initialize output block iterator state. Dimension in this array are
197  // always in inner_most -> outer_most order (col major layout).
199  for (int i = 0; i < NumDims; ++i) {
200  const int dim = is_col_major ? i : NumDims - 1 - i;
201  it[i].size = desc.dimension(dim);
202  it[i].stride = i == 0 ? 1 : (it[i - 1].size * it[i - 1].stride);
203  it[i].span = it[i].stride * (it[i].size - 1);
204  it[i].count = 0;
205  }
206  eigen_assert(it[0].stride == 1);
207 
208  // Prepare storage for the materialized generator result.
209  const typename TensorBlock::Storage block_storage =
211 
212  CoeffReturnType* block_buffer = block_storage.data();
213 
214  static const int packet_size = PacketType<CoeffReturnType, Device>::size;
215 
216  static const int inner_dim = is_col_major ? 0 : NumDims - 1;
217  const Index inner_dim_size = it[0].size;
218  const Index inner_dim_vectorized = inner_dim_size - packet_size;
219 
220  while (it[NumDims - 1].count < it[NumDims - 1].size) {
221  Index i = 0;
222  // Generate data for the vectorized part of the inner-most dimension.
223  for (; i <= inner_dim_vectorized; i += packet_size) {
224  for (Index j = 0; j < packet_size; ++j) {
225  array<Index, NumDims> j_coords = coords; // Break loop dependence.
226  j_coords[inner_dim] += j;
227  *(block_buffer + offset + i + j) = m_generator(j_coords);
228  }
229  coords[inner_dim] += packet_size;
230  }
231  // Finalize non-vectorized part of the inner-most dimension.
232  for (; i < inner_dim_size; ++i) {
233  *(block_buffer + offset + i) = m_generator(coords);
234  coords[inner_dim]++;
235  }
236  coords[inner_dim] = initial_coords[inner_dim];
237 
238  // For the 1d tensor we need to generate only one inner-most dimension.
239  if (NumDims == 1) break;
240 
241  // Update offset.
242  for (i = 1; i < NumDims; ++i) {
243  if (++it[i].count < it[i].size) {
244  offset += it[i].stride;
245  coords[is_col_major ? i : NumDims - 1 - i]++;
246  break;
247  }
248  if (i != NumDims - 1) it[i].count = 0;
249  coords[is_col_major ? i : NumDims - 1 - i] =
250  initial_coords[is_col_major ? i : NumDims - 1 - i];
251  offset -= it[i].span;
252  }
253  }
254 
255  return block_storage.AsTensorMaterializedBlock();
256  }
257 
259  costPerCoeff(bool) const {
260  // TODO(rmlarsen): This is just a placeholder. Define interface to make
261  // generators return their cost.
262  return TensorOpCost(0, 0, TensorOpCost::AddCost<Scalar>() +
263  TensorOpCost::MulCost<Scalar>());
264  }
265 
267 
268 #ifdef EIGEN_USE_SYCL
269  // binding placeholder accessors to a command group handler for SYCL
270  EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void bind(cl::sycl::handler&) const {}
271 #endif
272 
273  protected:
275  void extract_coordinates(Index index, array<Index, NumDims>& coords) const {
276  if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
277  for (int i = NumDims - 1; i > 0; --i) {
278  const Index idx = index / m_fast_strides[i];
279  index -= idx * m_strides[i];
280  coords[i] = idx;
281  }
282  coords[0] = index;
283  } else {
284  for (int i = 0; i < NumDims - 1; ++i) {
285  const Index idx = index / m_fast_strides[i];
286  index -= idx * m_strides[i];
287  coords[i] = idx;
288  }
289  coords[NumDims-1] = index;
290  }
291  }
292 
297  Generator m_generator;
298 };
299 
300 } // end namespace Eigen
301 
302 #endif // EIGEN_CXX11_TENSOR_TENSOR_GENERATOR_H
Eigen::TensorEvaluator::dimensions
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Dimensions & dimensions() const
Definition: TensorEvaluator.h:73
Eigen::internal::TensorBlockScratchAllocator
Definition: TensorBlock.h:525
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::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::getResourceRequirements
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE internal::TensorBlockResourceRequirements getResourceRequirements() const
Definition: TensorGenerator.h:168
Eigen::CwiseBinaryOp
Generic expression where a coefficient-wise binary operator is applied to two expressions.
Definition: CwiseBinaryOp.h:77
Eigen::internal::nested< TensorGeneratorOp< Generator, XprType >, 1, typename eval< TensorGeneratorOp< Generator, XprType > >::type >::type
TensorGeneratorOp< Generator, XprType > type
Definition: TensorGenerator.h:46
Eigen::array< Index, NumDims >
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::data
EIGEN_DEVICE_FUNC EvaluatorPointerType data() const
Definition: TensorGenerator.h:266
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::m_dimensions
Dimensions m_dimensions
Definition: TensorGenerator.h:294
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::TensorBlock
internal::TensorMaterializedBlock< CoeffReturnType, NumDims, Layout, Index > TensorBlock
Definition: TensorGenerator.h:111
Eigen::internal::nested
Definition: TensorTraits.h:174
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::block
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorBlock block(TensorBlockDesc &desc, TensorBlockScratch &scratch, bool=false) const
Definition: TensorGenerator.h:183
eigen_assert
#define eigen_assert(x)
Definition: Macros.h:1037
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::PacketReturnType
PacketType< CoeffReturnType, Device >::type PacketReturnType
Definition: TensorGenerator.h:90
Eigen::TensorEvaluator::Layout
@ Layout
Definition: TensorEvaluator.h:50
Eigen::TensorGeneratorOp::m_xpr
XprType::Nested m_xpr
Definition: TensorGenerator.h:75
Eigen::internal::TensorMaterializedBlock
Definition: TensorBlock.h:656
different_sigmas::values
HybridValues values
Definition: testHybridBayesNet.cpp:245
Eigen::internal::TensorMaterializedBlock::Storage
Definition: TensorBlock.h:694
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::BlockIteratorState::count
Index count
Definition: TensorGenerator.h:179
Eigen::TensorGeneratorOp::generator
const EIGEN_DEVICE_FUNC Generator & generator() const
Definition: TensorGenerator.h:68
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::coeff
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE CoeffReturnType coeff(Index index) const
Definition: TensorGenerator.h:145
Eigen::internal::traits< TensorGeneratorOp< Generator, XprType > >::Index
XprTraits::Index Index
Definition: TensorGenerator.h:29
Eigen::internal::traits< TensorGeneratorOp< Generator, XprType > >::PointerType
XprTraits::PointerType PointerType
Definition: TensorGenerator.h:34
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::TensorEvaluator
EIGEN_STRONG_INLINE TensorEvaluator(const XprType &op, const Device &device)
Definition: TensorGenerator.h:114
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::IndexDivisor
internal::TensorIntDivisor< Index > IndexDivisor
Definition: TensorGenerator.h:103
Eigen::internal::TensorIntDivisor< Index >
make_changelog.desc
desc
Definition: make_changelog.py:71
Eigen::internal::traits< TensorGeneratorOp< Generator, XprType > >::XprTraits
traits< XprType > XprTraits
Definition: TensorGenerator.h:27
size
Scalar Scalar int size
Definition: benchVecAdd.cpp:17
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::Dimensions
TensorEvaluator< ArgType, Device >::Dimensions Dimensions
Definition: TensorGenerator.h:86
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::evalSubExprsIfNeeded
EIGEN_STRONG_INLINE bool evalSubExprsIfNeeded(EvaluatorPointerType)
Definition: TensorGenerator.h:139
EIGEN_ALIGN_MAX
#define EIGEN_ALIGN_MAX
Definition: ConfigureVectorization.h:157
Eigen::internal::eval< TensorGeneratorOp< Generator, XprType >, Eigen::Dense >::type
const typedef TensorGeneratorOp< Generator, XprType > & type
Definition: TensorGenerator.h:40
Eigen::PacketType
Definition: TensorMeta.h:50
Eigen::internal::TensorBlockDescriptor< NumDims, Index >
Eigen::internal::true_type
Definition: Meta.h:96
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::cleanup
EIGEN_STRONG_INLINE void cleanup()
Definition: TensorGenerator.h:142
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::EvaluatorPointerType
Storage::Type EvaluatorPointerType
Definition: TensorGenerator.h:92
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::Index
XprType::Index Index
Definition: TensorGenerator.h:85
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::Scalar
XprType::Scalar Scalar
Definition: TensorGenerator.h:88
Eigen::internal::traits< TensorGeneratorOp< Generator, XprType > >::_Nested
remove_reference< Nested >::type _Nested
Definition: TensorGenerator.h:31
j
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2
Eigen::TensorGeneratorOp::Index
Eigen::internal::traits< TensorGeneratorOp >::Index Index
Definition: TensorGenerator.h:62
Eigen::internal::traits< TensorGeneratorOp< Generator, XprType > >::StorageKind
XprTraits::StorageKind StorageKind
Definition: TensorGenerator.h:28
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::m_device
const Device EIGEN_DEVICE_REF m_device
Definition: TensorGenerator.h:293
Eigen::TensorGeneratorOp
Tensor generator class.
Definition: TensorForwardDeclarations.h:85
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::BlockIteratorState::size
Index size
Definition: TensorGenerator.h:178
EIGEN_STRONG_INLINE
#define EIGEN_STRONG_INLINE
Definition: Macros.h:917
EIGEN_UNROLL_LOOP
#define EIGEN_UNROLL_LOOP
Definition: Macros.h:1461
Eigen::TensorEvaluator::PreferBlockAccess
@ PreferBlockAccess
Definition: TensorEvaluator.h:49
Eigen::TensorGeneratorOp::Scalar
Eigen::internal::traits< TensorGeneratorOp >::Scalar Scalar
Definition: TensorGenerator.h:57
Eigen::Triplet< double >
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::m_fast_strides
array< IndexDivisor, NumDims > m_fast_strides
Definition: TensorGenerator.h:296
Eigen::TensorEvaluator::m_device
const Device EIGEN_DEVICE_REF m_device
Definition: TensorEvaluator.h:192
Eigen::StorageMemory
Definition: TensorForwardDeclarations.h:37
Eigen::TensorBase
The tensor base class.
Definition: TensorBase.h:973
Eigen::internal::TensorMaterializedBlock::Storage::data
Scalar * data() const
Definition: TensorBlock.h:696
Eigen::TensorGeneratorOp::m_generator
const Generator m_generator
Definition: TensorGenerator.h:76
Eigen::TensorGeneratorOp::CoeffReturnType
XprType::CoeffReturnType CoeffReturnType
Definition: TensorGenerator.h:59
Eigen::TensorGeneratorOp::RealScalar
Eigen::NumTraits< Scalar >::Real RealScalar
Definition: TensorGenerator.h:58
Eigen::internal::array_size
Definition: Meta.h:445
Eigen::TensorEvaluator::BlockAccess
@ BlockAccess
Definition: TensorEvaluator.h:48
offset
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 y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics set mxtics default set mytics default set mx2tics default set my2tics default set xtics border mirror norotate autofreq set ytics border mirror norotate autofreq set ztics border nomirror norotate autofreq set nox2tics set noy2tics set timestamp bottom norotate offset
Definition: gnuplot_common_settings.hh:64
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::packet
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE PacketReturnType packet(Index index) const
Definition: TensorGenerator.h:153
Eigen::TensorGeneratorOp::TensorGeneratorOp
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorGeneratorOp(const XprType &expr, const Generator &generator)
Definition: TensorGenerator.h:64
Eigen::TensorGeneratorOp::StorageKind
Eigen::internal::traits< TensorGeneratorOp >::StorageKind StorageKind
Definition: TensorGenerator.h:61
Eigen::internal::traits< TensorGeneratorOp< Generator, XprType > >::Nested
XprType::Nested Nested
Definition: TensorGenerator.h:30
Eigen::internal::traits
Definition: ForwardDeclarations.h:17
EIGEN_STATIC_ASSERT
#define EIGEN_STATIC_ASSERT(CONDITION, MSG)
Definition: StaticAssert.h:127
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::costPerCoeff
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE TensorOpCost costPerCoeff(bool) const
Definition: TensorGenerator.h:259
Eigen::internal::TensorBlockResourceRequirements
Definition: TensorBlock.h:75
Eigen::array::size
EIGEN_DEVICE_FUNC static EIGEN_ALWAYS_INLINE std::size_t size()
Definition: EmulateArray.h:44
Eigen::TensorGeneratorOp::Nested
Eigen::internal::nested< TensorGeneratorOp >::type Nested
Definition: TensorGenerator.h:60
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 TensorGeneratorOp< Generator, ArgType >, Device >::BlockIteratorState::span
Index span
Definition: TensorGenerator.h:177
Eigen::TensorGeneratorOp::expression
const EIGEN_DEVICE_FUNC internal::remove_all< typename XprType::Nested >::type & expression() const
Definition: TensorGenerator.h:72
Eigen::TensorEvaluator
A cost model used to limit the number of threads used for evaluating tensor expression.
Definition: TensorEvaluator.h:28
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::Storage
StorageMemory< CoeffReturnType, Device > Storage
Definition: TensorGenerator.h:91
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::TensorBlockScratch
internal::TensorBlockScratchAllocator< Device > TensorBlockScratch
Definition: TensorGenerator.h:107
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::TensorBlockDesc
internal::TensorBlockDescriptor< NumDims, Index > TensorBlockDesc
Definition: TensorGenerator.h:106
internal
Definition: BandTriangularSolver.h:13
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::XprType
TensorGeneratorOp< Generator, ArgType > XprType
Definition: TensorGenerator.h:84
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::extract_coordinates
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void extract_coordinates(Index index, array< Index, NumDims > &coords) const
Definition: TensorGenerator.h:275
Eigen::TensorEvaluator::CoeffReturnType
Derived::Scalar CoeffReturnType
Definition: TensorEvaluator.h:32
NULL
#define NULL
Definition: ccolamd.c:609
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::m_strides
array< Index, NumDims > m_strides
Definition: TensorGenerator.h:295
Eigen::internal::TensorMaterializedBlock::prepareStorage
static EIGEN_STRONG_INLINE Storage prepareStorage(TensorBlockDesc &desc, TensorBlockScratch &scratch, bool allow_strided_storage=false)
Definition: TensorBlock.h:730
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::CoeffReturnType
XprType::CoeffReturnType CoeffReturnType
Definition: TensorGenerator.h:89
Eigen::ColMajor
@ ColMajor
Definition: Constants.h:319
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::m_generator
Generator m_generator
Definition: TensorGenerator.h:297
Eigen::TensorEvaluator::IsAligned
@ IsAligned
Definition: TensorEvaluator.h:46
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::dimensions
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Dimensions & dimensions() const
Definition: TensorGenerator.h:137
Eigen::internal::eval
Definition: XprHelper.h:332
Eigen::internal::traits< TensorGeneratorOp< Generator, XprType > >::Scalar
XprType::Scalar Scalar
Definition: TensorGenerator.h:26
Eigen::TensorEvaluator::PacketAccess
@ PacketAccess
Definition: TensorEvaluator.h:47
Eigen::internal::TensorMaterializedBlock::Storage::AsTensorMaterializedBlock
TensorMaterializedBlock AsTensorMaterializedBlock() const
Definition: TensorBlock.h:700
Eigen::TensorEvaluator< const TensorGeneratorOp< Generator, ArgType >, Device >::BlockIteratorState::stride
Index stride
Definition: TensorGenerator.h:176
Eigen::TensorOpCost
Definition: TensorCostModel.h:25
i
int i
Definition: BiCGSTAB_step_by_step.cpp:9
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::Dense
Definition: Constants.h:507


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:06:03