Table of Contents

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

typeCode NPTypeCode

An 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

type Type

A 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

int

dtype

The NPTypeCode of this integer type.

public NPTypeCode dtype { get; }

Property Value

NPTypeCode

kind

Character code for this type. 'i' for signed integers, 'u' for unsigned integers, 'b' for boolean.

public char kind { get; }

Property Value

char

max

Maximum value of given dtype.

public long max { get; }

Property Value

long

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

ulong

min

Minimum value of given dtype.

public long min { get; }

Property Value

long

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.