EHN: add FieldFunction interface for 0/1 clamping

- enables clamp(field, zero_one{}) returning a tmp Field
This commit is contained in:
Mark Olesen
2023-01-21 22:30:33 +01:00
parent 6f68ce5239
commit ab10b4a05c
10 changed files with 227 additions and 7 deletions

View File

@ -630,6 +630,7 @@ BINARY_TYPE_FUNCTION(Type, Type, Type, min)
BINARY_TYPE_FUNCTION(Type, Type, Type, cmptMultiply)
BINARY_TYPE_FUNCTION(Type, Type, Type, cmptDivide)
// Note: works with zero_one through implicit conversion to MinMax
BINARY_TYPE_FUNCTION_FS(Type, Type, MinMax<Type>, clamp)