struct CoopVec<T, int N>
Conforms to: IArray<T>, IArithmetic
Conditionally conforms to: IDifferentiable, IDifferentiableArithmetic
Description
Represents a Cooperative Vector type that is for matrix-vector multiplication that can take an advantage of the hardware acceleration. It can be used for evaluations of neural network in graphics and compute pipeline.
Generic Parameters
T: __BuiltinArithmeticType
The element type of the CoopVec.
N : int
The vector size.
Methods
- copyFrom
- fill
- storeCoherent
- store
- storeAny
- loadCoherent
- load
- loadAny
- getCount
- subscript
- replicate
- equals
- lessThan
- lessThanOrEquals
- mod
- matMulAccumPacked
- matMulAccum
- matMulAddAccumPacked
- matMulAddAccum
- dzero
- dadd
- init
- add
- sub
- mul
- div
- neg
Conditional Conformances
Conformance to IDifferentiable
CoopVec<T, int N> additionally conforms to IDifferentiable when the following conditions are met:
- T : __BuiltinFloatingPointType
Conformance to IDifferentiableArithmetic
CoopVec<T, int N>additionally conforms toIDifferentiableArithmeticwhen the following conditions are met: - T : __BuiltinFloatingPointType