Overview
cutlass::Array is a statically sized array template that accommodates all CUTLASS-supported numeric types and is safe to use in a union. It provides STL-compatible interfaces including iterators, element access, and various operations.
Header: cutlass/array.h
Template Signature
Template Parameters
typename
Element type. Can be any CUTLASS numeric type including
float, half_t, int8_t, etc.int
Number of elements in the array
bool
default:"sizeof_bits<T>::value >= 32"
Internal optimization flag. Set to true for types with 32 or more bits.
Member Types
Data Members
Member Functions
Element Access
at
operator[]
front
back
data
raw_data
Capacity
empty
size
max_size
Operations
clear
fill(T(0)).
fill
Iterators
begin / end
rbegin / rend
Factory Functions
make_Array
Numeric Specializations
Array provides specialized implementations of numeric operations for SIMD efficiency on supported types likehalf_t.
Arithmetic Operations
Comparison Operations
Fused Operations
Mathematical Functions
Usage Examples
Basic Array Operations
Factory Functions
Numeric Operations
With Half-Precision Types
In Device Code
SIMD Optimization
Forhalf_t arrays, operations are automatically SIMD-optimized on SM_53 and later:
See Also
- TensorRef - Uses Array for fragment operations
- Gemm - Uses Array internally for accumulation
- Epilogue Operators - Operate on Array fragments