MCPcopy Create free account
hub / github.com/IoLanguage/io / UArray_negate

Function UArray_negate

libs/basekit/source/UArray_math.c:79–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void UArray_negate(const UArray *self) {
80 if (UArray_isSignedType(self)) {
81 UARRAY_FOREACHASSIGN(self, i, v, -v);
82 } else {
83 UArray_error_(self, "UArray_negate not supported on this type");
84 }
85}
86
87// basic vector math
88

Callers

nothing calls this directly

Calls 2

UArray_isSignedTypeFunction · 0.85
UArray_error_Function · 0.85

Tested by

no test coverage detected