Shortcuts

Template Struct TensorTraits< Tensor< T, Dimensions > >

Struct Documentation

template<typename T, size_t Dimensions>
struct ripple::TensorTraits<Tensor<T, Dimensions>>

Tensor traits for a Tensor with data type T and Dims dimensions.

This specialization is for tensor types.

Template Parameters
  • T: The type of the tensor data.

  • Dimensions: The number of dimensions for the tensor.

Public Types

using Value = T

Defines the data type of the tensor data.

using Iterator = typename Block<T, Dimensions>::Iterator

Defines the type of the iterator over the tensor in global memory.

using SharedIterator = typename Block<T, Dimensions>::SharedIterator

Defines the type of the iterator over the tensor in shared memory.

Public Static Attributes

constexpr bool is_tensor = true

Returns that this is a Tensor.

constexpr size_t dimensions = Dimensions

Returns the number of dimensions for the tensor.

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples