Vocabularymath.
vectorsInputsOutputsWord descriptionAdds
u and
v component-wise with saturation.
ExamplesWith saturation:
USING: alien.c-types math.vectors prettyprint specialized-arrays ;
SPECIALIZED-ARRAY: uchar
uchar-array{ 100 200 150 } uchar-array{ 70 70 70 } vs+ .
uchar-array{ 170 255 220 }
Without saturation:
USING: alien.c-types math.vectors prettyprint specialized-arrays ;
SPECIALIZED-ARRAY: uchar
uchar-array{ 100 200 150 } uchar-array{ 70 70 70 } v+ .
uchar-array{ 170 14 220 }
See alsovs-,
vs*DefinitionMethods