COMPLEX_

Summary
COMPLEX_
Functions
COMPLEX_.inheritedThis method is used internally to set the number of elements to 2 for all subclasses.
COMPLEX_.to_sDisplay name of this type.
COMPLEX_.defaultGet default value for this type.
COMPLEX_.scalarGet element type.
COMPLEX_.maxintGet corresponding COMPLEX type based on 32-bit integers.
COMPLEX_.floatGet corresponding floating-point version to this type.
COMPLEX_.coercionRuby coercion mechanism.
COMPLEX_.coerceNative coercion.
COMPLEX_.==Comparison operator.
Related
Constants
Complex type shortcuts
Functions
COMPLEXConstruct complex class.

Functions

COMPLEX_.inherited

def COMPLEX_.inherited(subclass)

This method is used internally to set the number of elements to 2 for all subclasses.

COMPLEX_.to_s

def COMPLEX_.to_s

Display name of this type.

COMPLEX_.default

def COMPLEX_.default

Get default value for this type.

Returns

COMPLEX( e, e ) where e is the default for the element-type.

COMPLEX_.scalar

def COMPLEX_.scalar

Get element type.

COMPLEX_.maxint

def COMPLEX_.maxint

Get corresponding COMPLEX type based on 32-bit integers.

COMPLEX_.float

def COMPLEX_.float

Get corresponding floating-point version to this type.

COMPLEX_.coercion

def COMPLEX_.coercion(other)

Ruby coercion mechanism.

COMPLEX_.coerce

def COMPLEX_.coerce(other)

Native coercion.

COMPLEX_.==

def COMPLEX_.==(other)

Comparison operator.

Related

Constants

Complex type shortcuts

SCOMPLEXSingle-precision complex number.
DCOMPLEXDouble-precision complex number.

Functions

COMPLEX

def COMPLEX(element_type)

Construct complex class.

Parameters

element_typeElement type.  Usually SFLOAT or DFLOAT.
def COMPLEX_.inherited(subclass)
This method is used internally to set the number of elements to 2 for all subclasses.
def COMPLEX_.to_s
Display name of this type.
def COMPLEX_.default
Get default value for this type.
def COMPLEX_.scalar
Get element type.
def COMPLEX_.maxint
Get corresponding COMPLEX type based on 32-bit integers.
def COMPLEX_.float
Get corresponding floating-point version to this type.
def COMPLEX_.coercion(other)
Ruby coercion mechanism.
def COMPLEX_.coerce(other)
Native coercion.
def COMPLEX_.==(other)
Comparison operator.
def COMPLEX(element_type)
Construct complex class.
Single-precision floating-point number.
Double-precision floating-point number.
Close