validateCompatibility

fun validateCompatibility(source: DType, target: DType)(source)

Validates that two DTypes are compatible for operations.

Parameters

source

The source data type

target

The target data type

Throws

if the types are not compatible