HDataType

A type representation.

Supports Float32, Float64, Complex32 and Complex64 types.

Methods

print

print() source

Prints the HDataType.

Differently from R’s behaviour, print doesn’t return the value invisibly.

Examples

library(harmonium)
dtype = HDataType$Complex64
dtype$print()

# or similarly:
print(dtype)

eq

eq(other: HDataType) -> bool source

Equality with another HDataType.

Arguments

  • other

An HDataType.

Returns

A bool.

Examples

library(harmonium)
hdatatype1 = HDataType$Float32
hdatatype2 = HDataType$Float32
hdatatype1$eq(hdatatype2) # TRUE

# or similarly:
hdatatype1 == hdatatype2

ne

ne(other: HDataType) -> bool source

Difference with another HDataType.

Arguments

  • other

An HDataType.

Returns

A bool.

Examples

library(harmonium)
hdatatype1 = HDataType$Float32
hdatatype2 = HDataType$Float64
hdatatype1$ne(hdatatype2) # TRUE

# or similarly:
hdatatype1 != hdatatype2