• Slang Standard Library Reference
    • Interfaces
    • Types
      • Buffer types
      • Math types
      • Miscelaneous types
      • Ray-tracing
      • Sampler types
      • Scalar types
      • Stage IO types
      • Texture types
      • Array
      • Atomic
      • AtomicAdd
      • ConstantBuffer
      • CoopMat
      • CoopMatMatrixLayout
      • CoopMatMatrixOperands
      • CoopMatMatrixUse
      • CoopMatScope
      • CoopVec
        • add
        • copyFrom
        • div
        • equals
        • fill
        • getCount
        • init
        • lessThan
        • lessThanOrEquals
        • load
        • loadAny
        • matMulAccum
        • matMulAccumPacked
        • matMulAddAccum
        • matMulAddAccumPacked
        • mod
        • mul
        • neg
        • replicate
        • store
        • storeAny
        • sub
        • subscript
      • CoopVecComponentType
      • CoopVecMatrixLayout
      • DescriptorAccess
      • DescriptorHandle
      • DescriptorKind
      • DiffTensorView
      • DifferentialPair
      • DifferentialPtrPair
      • DispatchNodeInputRecord
      • NodePayloadPtr
      • NullDifferential
      • Optional
      • ParameterBlock
      • Ptr
      • String
      • TensorView
      • TorchTensor
      • Tuple
      • _AttributeTargets
      • int8_t4_packed
      • uint8_t4_packed
    • Attributes
    • Global Declarations

CoopVec<T, N:int>.lessThan

Description

Compares two cooperative vectors lexicographically.

Signature

bool CoopVec<T, N:int>.lessThan(CoopVec<T, N> other)
    where T : __BuiltinArithmeticType;

Parameters

other : CoopVec<T, N>

The cooperative vector to compare against.

Return value

True if this vector is lexicographically less than the other vector.

Remarks

This function exists only to conform to IComparable. For cooperative vectors, lexicographical comparison has limited practical use since the vectors are meant for parallel computation rather than ordering.