Class iinfo
- Namespace
- NumSharp
- Assembly
- NumSharp.dll
Machine limits for integer types.
public sealed class iinfo
- Inheritance
-
iinfo
- Inherited Members
- Extension Methods
Remarks
Constructors
iinfo(NPTypeCode)
Create iinfo for the specified NPTypeCode.
public iinfo(NPTypeCode typeCode)
Parameters
typeCodeNPTypeCodeAn integer type code.
Exceptions
- ArgumentException
Thrown if typeCode is not an integer type.
iinfo(Type)
Create iinfo for the specified CLR type.
public iinfo(Type type)
Parameters
typeTypeA CLR integer type.
Exceptions
- ArgumentException
Thrown if type is not an integer type.
Properties
bits
Number of bits occupied by the type.
public int bits { get; }
Property Value
dtype
The NPTypeCode of this integer type.
public NPTypeCode dtype { get; }
Property Value
kind
Character code for this type. 'i' for signed integers, 'u' for unsigned integers, 'b' for boolean.
public char kind { get; }
Property Value
max
Maximum value of given dtype.
public long max { get; }
Property Value
Remarks
For unsigned 64-bit integers, the actual max is ulong.MaxValue which exceeds long.MaxValue. Use maxUnsigned to get the true value.
maxUnsigned
Maximum value for unsigned types as ulong. For signed types, this equals max.
public ulong maxUnsigned { get; }
Property Value
min
Minimum value of given dtype.
public long min { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.