Class NDIntegerPower
Integer power helpers matching NumPy's @TYPE@_power loop in loops.c.src.
Uses repeated-squaring with native dtype wraparound (e.g. uint8 ** 8 = 0).
These helpers assume the exponent is non-negative. NumPy raises
ValueError("Integers to negative integer powers are not allowed.") for any
negative integer exponent, regardless of base value; the caller is responsible
for that pre-check (see DefaultEngine.Power).
public static class NDIntegerPower
- Inheritance
-
NDIntegerPower
- Inherited Members
Methods
PowByte(byte, byte)
public static byte PowByte(byte a, byte b)
Parameters
Returns
PowChar(char, char)
public static char PowChar(char a, char b)
Parameters
Returns
PowInt16(short, short)
public static short PowInt16(short a, short b)
Parameters
Returns
PowInt32(int, int)
public static int PowInt32(int a, int b)
Parameters
Returns
PowInt64(long, long)
public static long PowInt64(long a, long b)
Parameters
Returns
PowSByte(sbyte, sbyte)
public static sbyte PowSByte(sbyte a, sbyte b)
Parameters
Returns
PowUInt16(ushort, ushort)
public static ushort PowUInt16(ushort a, ushort b)
Parameters
Returns
PowUInt32(uint, uint)
public static uint PowUInt32(uint a, uint b)
Parameters
Returns
PowUInt64(ulong, ulong)
public static ulong PowUInt64(ulong a, ulong b)