org.jruby
Class RubyComplex

java.lang.Object
  extended by org.jruby.RubyBasicObject
      extended by org.jruby.RubyObject
          extended by org.jruby.RubyNumeric
              extended by org.jruby.RubyComplex
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<IRubyObject>, InstanceVariables, InternalVariables, IRubyObject, CoreObjectType

public class RubyComplex
extends RubyNumeric

1.9 complex.c as of revision: 20011

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jruby.RubyNumeric
RubyNumeric.InvalidIntegerException, RubyNumeric.NumberTooLargeException
 
Nested classes/interfaces inherited from class org.jruby.RubyObject
RubyObject.Data, RubyObject.ObjectMethods
 
Nested classes/interfaces inherited from class org.jruby.RubyBasicObject
RubyBasicObject.BasicObjectMethods, RubyBasicObject.Finalizer
 
Field Summary
 
Fields inherited from class org.jruby.RubyNumeric
DBL_EPSILON, NUMERIC_ALLOCATOR
 
Fields inherited from class org.jruby.RubyObject
OBJECT_ALLOCATOR
 
Fields inherited from class org.jruby.RubyBasicObject
ALL_F, COMPARE_BY_IDENTITY_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, metaClass, NEVER, NIL_F, TAINTED_F, UNDEF, UNTRUSTED_F, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F
 
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
 
Method Summary
 IRubyObject abs(ThreadContext context)
          nucomp_abs
 IRubyObject abs2(ThreadContext context)
          nucomp_abs2
 IRubyObject arg(ThreadContext context)
          nucomp_arg
 IRubyObject coerce(ThreadContext context, IRubyObject other)
          nucomp_coerce
 IRubyObject complex_p(ThreadContext context)
          nucomp_complex_p
 IRubyObject conjugate(ThreadContext context)
          nucomp_conjugate
static IRubyObject convert(ThreadContext context, IRubyObject recv, IRubyObject a1)
          nucomp_s_convert
static IRubyObject convert(ThreadContext context, IRubyObject clazz, IRubyObject[] args)
          Deprecated. 
static IRubyObject convert(ThreadContext context, IRubyObject recv, IRubyObject a1, IRubyObject a2)
          nucomp_s_convert
static RubyClass createComplexClass(Ruby runtime)
           
 IRubyObject demoninator(ThreadContext context)
          nucomp_denominator
 IRubyObject eql_p(ThreadContext context, IRubyObject other)
          nucomp_eql_p
 IRubyObject exact_p(ThreadContext context)
          nucomp_exact_p
 IRubyObject fdiv(ThreadContext context, IRubyObject other)
          nucomp_fdiv
 IRubyObject hash(ThreadContext context)
          nucomp_hash
 IRubyObject image()
          nucomp_image
 IRubyObject inexact_p(ThreadContext context)
          nucomp_exact_p
 IRubyObject inspect(ThreadContext context)
          nucomp_inspect
 IRubyObject marshal_dump(ThreadContext context)
          nucomp_marshal_dump
 IRubyObject marshal_load(ThreadContext context, IRubyObject arg)
          nucomp_marshal_load
 IRubyObject negate(ThreadContext context)
          nucomp_negate
static RubyComplex newComplexBang(ThreadContext context, IRubyObject clazz, IRubyObject x)
          f_complex_new_bang1
static IRubyObject newComplexCanonicalize(ThreadContext context, IRubyObject x)
          rb_complex_new1
static IRubyObject newComplexCanonicalize(ThreadContext context, IRubyObject x, IRubyObject y)
          rb_complex_new
static IRubyObject newComplexConvert(ThreadContext context, IRubyObject x)
          rb_Complex1
static IRubyObject newComplexConvert(ThreadContext context, IRubyObject x, IRubyObject y)
          rb_Complex/rb_Complex2
static IRubyObject newInstance(ThreadContext context, IRubyObject recv, IRubyObject real)
           
static IRubyObject newInstance(ThreadContext context, IRubyObject recv, IRubyObject[] args)
          Deprecated. 
static IRubyObject newInstance(ThreadContext context, IRubyObject recv, IRubyObject real, IRubyObject image)
           
static IRubyObject newInstanceBang(ThreadContext context, IRubyObject recv, IRubyObject real)
           
static IRubyObject newInstanceBang(ThreadContext context, IRubyObject recv, IRubyObject[] args)
          Deprecated. 
static IRubyObject newInstanceBang(ThreadContext context, IRubyObject recv, IRubyObject real, IRubyObject image)
           
static IRubyObject newInstanceNew(ThreadContext context, IRubyObject recv, IRubyObject real)
           
static IRubyObject newInstanceNew(ThreadContext context, IRubyObject recv, IRubyObject real, IRubyObject image)
           
 IRubyObject numerator(ThreadContext context)
          nucomp_numerator
 IRubyObject op_add(ThreadContext context, IRubyObject other)
          nucomp_add
 IRubyObject op_div(ThreadContext context, IRubyObject other)
          nucomp_div / nucomp_quo
 IRubyObject op_equal(ThreadContext context, IRubyObject other)
          nucomp_equal_p
 IRubyObject op_expt(ThreadContext context, IRubyObject other)
          nucomp_expt
 IRubyObject op_mul(ThreadContext context, IRubyObject other)
          nucomp_mul
 IRubyObject op_sub(ThreadContext context, IRubyObject other)
          nucomp_sub
 IRubyObject polar(ThreadContext context)
          nucomp_polar
static IRubyObject polar(ThreadContext context, IRubyObject clazz, IRubyObject abs, IRubyObject arg)
          nucomp_s_polar
 IRubyObject real_p(ThreadContext context)
          nucomp_real_p
 IRubyObject real()
          nucomp_real
 IRubyObject rect(ThreadContext context)
          nucomp_rect
 IRubyObject to_f(ThreadContext context)
          nucomp_to_f
 IRubyObject to_i(ThreadContext context)
          nucomp_to_i
 IRubyObject to_r(ThreadContext context)
          nucomp_to_f
 IRubyObject to_s(ThreadContext context)
          nucomp_to_s
 
Methods inherited from class org.jruby.RubyNumeric
asNumeric, callCoerced, callCoerced, ceil, checkInt, coerce, coerceBin, coerceBody, coerceCmp, coerceRelOp, createNumericClass, dbl_cmp, dbl2num, denominator, div, divmod, doCoerce, fix2int, fix2int, fix2long, floatStep, floor, getBigIntegerValue, getCoerced, getDoubleValue, getLongValue, image, initialize_copy, int2fix, integer_p, magnitude, modulo, newNumeric, nonzero_p, num2chr, num2dbl, num2fix, num2int, num2long, op_cmp, op_num_equal, op_uminus, op_uplus, quo_19, quo, real, remainder, round, sadded, scalar_p, step, step, step, step19, step19, str2fnum, str2fnum, str2inum, str2inum, to_c, to_int, toJava, truncate, zero_p
 
Methods inherited from class org.jruby.RubyObject
as, attachToObjectSpace, callInit, checkFrozen, convertToType, createObjectClass, display, dup, eql_p, eqlInternal, equal_p, equalInternal, equals, evalUnder, evalUnder, extend, freeze, frozen_p, getNativeTypeIndex, hash, hashCode, id_deprecated, id, initialize, inspect, instance_eval, instance_eval, instance_eval, instance_eval, instance_eval, instance_exec, instance_of_p, instance_variable_defined_p, instance_variable_get, instance_variable_set, instance_variables, kind_of_p, method, methods, methods, methods19, nil_p, op_eqq, op_match, op_not_match, private_methods, private_methods19, protected_methods, protected_methods19, public_methods, public_methods19, puts, rbClone, remove_instance_variable, respond_to_p, respond_to_p, send, send, send, send, send, singleton_methods, singleton_methods19, singletonMethods, specificEval, specificEval, specificEval, specificEval, specificEval, taint, tainted_p, to_a, to_java, to_s, toString, trust, type_deprecated, type, untaint, untrust, untrusted_p, validateInstanceVariable
 
Methods inherited from class org.jruby.RubyBasicObject
addFinalizer, anyToString, asJavaString, asString, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callSuper, checkArrayType, checkStringType, compareTo, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToInteger, convertToInteger, convertToString, copyInstanceVariablesInto, copySpecialInstanceVariables, createBasicObjectClass, dataGetStruct, dataGetStructChecked, dataWrapStruct, ensureInstanceVariablesSettable, eql, fastGetInstanceVariable, fastGetInternalVariable, fastHasInstanceVariable, fastHasInternalVariable, fastSetInstanceVariable, fastSetInternalVariable, getFlag, getInstanceVariable, getInstanceVariableList, getInstanceVariableNameList, getInstanceVariables, getInternalVariable, getInternalVariables, getJavaClass, getMetaClass, getRuntime, getSingletonClass, getSingletonClassClone, getType, getVariable, getVariableCount, getVariableList, getVariableNameList, hasInstanceVariable, hasInternalVariable, hasVariables, infectBy, isClass, isFalse, isFrozen, isImmediate, isModule, isNil, isTaint, isTrue, isUntrusted, makeMetaClass, op_not_equal, op_not, removeFinalizers, removeInstanceVariable, removeInternalVariable, respondsTo, setFlag, setFrozen, setInstanceVariable, setInternalVariable, setMetaClass, setTaint, setUntrusted, setVariable, syncVariables, taint, testFrozen, testFrozen, variableTableContains, variableTableFastContains, variableTableFastFetch, variableTableFastStore, variableTableFetch, variableTableGetSize, variableTableRemove, variableTableStore, variableTableSync
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

createComplexClass

public static RubyClass createComplexClass(Ruby runtime)

newComplexCanonicalize

public static IRubyObject newComplexCanonicalize(ThreadContext context,
                                                 IRubyObject x)
rb_complex_new1


newComplexCanonicalize

public static IRubyObject newComplexCanonicalize(ThreadContext context,
                                                 IRubyObject x,
                                                 IRubyObject y)
rb_complex_new


newComplexBang

public static RubyComplex newComplexBang(ThreadContext context,
                                         IRubyObject clazz,
                                         IRubyObject x)
f_complex_new_bang1


newInstanceBang

@Deprecated
public static IRubyObject newInstanceBang(ThreadContext context,
                                                     IRubyObject recv,
                                                     IRubyObject[] args)
Deprecated. 

nucomp_s_new_bang


newInstanceBang

public static IRubyObject newInstanceBang(ThreadContext context,
                                          IRubyObject recv,
                                          IRubyObject real)

newInstanceBang

public static IRubyObject newInstanceBang(ThreadContext context,
                                          IRubyObject recv,
                                          IRubyObject real,
                                          IRubyObject image)

newInstance

@Deprecated
public static IRubyObject newInstance(ThreadContext context,
                                                 IRubyObject recv,
                                                 IRubyObject[] args)
Deprecated. 

nucomp_s_new


newInstanceNew

public static IRubyObject newInstanceNew(ThreadContext context,
                                         IRubyObject recv,
                                         IRubyObject real)

newInstance

public static IRubyObject newInstance(ThreadContext context,
                                      IRubyObject recv,
                                      IRubyObject real)

newInstanceNew

public static IRubyObject newInstanceNew(ThreadContext context,
                                         IRubyObject recv,
                                         IRubyObject real,
                                         IRubyObject image)

newInstance

public static IRubyObject newInstance(ThreadContext context,
                                      IRubyObject recv,
                                      IRubyObject real,
                                      IRubyObject image)

polar

public static IRubyObject polar(ThreadContext context,
                                IRubyObject clazz,
                                IRubyObject abs,
                                IRubyObject arg)
nucomp_s_polar


newComplexConvert

public static IRubyObject newComplexConvert(ThreadContext context,
                                            IRubyObject x)
rb_Complex1


newComplexConvert

public static IRubyObject newComplexConvert(ThreadContext context,
                                            IRubyObject x,
                                            IRubyObject y)
rb_Complex/rb_Complex2


convert

@Deprecated
public static IRubyObject convert(ThreadContext context,
                                             IRubyObject clazz,
                                             IRubyObject[] args)
Deprecated. 


convert

public static IRubyObject convert(ThreadContext context,
                                  IRubyObject recv,
                                  IRubyObject a1)
nucomp_s_convert


convert

public static IRubyObject convert(ThreadContext context,
                                  IRubyObject recv,
                                  IRubyObject a1,
                                  IRubyObject a2)
nucomp_s_convert


real

public IRubyObject real()
nucomp_real


image

public IRubyObject image()
nucomp_image


negate

public IRubyObject negate(ThreadContext context)
nucomp_negate


op_add

public IRubyObject op_add(ThreadContext context,
                          IRubyObject other)
nucomp_add


op_sub

public IRubyObject op_sub(ThreadContext context,
                          IRubyObject other)
nucomp_sub


op_mul

public IRubyObject op_mul(ThreadContext context,
                          IRubyObject other)
nucomp_mul


op_div

public IRubyObject op_div(ThreadContext context,
                          IRubyObject other)
nucomp_div / nucomp_quo


fdiv

public IRubyObject fdiv(ThreadContext context,
                        IRubyObject other)
nucomp_fdiv

Overrides:
fdiv in class RubyNumeric

op_expt

public IRubyObject op_expt(ThreadContext context,
                           IRubyObject other)
nucomp_expt


op_equal

public IRubyObject op_equal(ThreadContext context,
                            IRubyObject other)
nucomp_equal_p

Specified by:
op_equal in interface IRubyObject
Overrides:
op_equal in class RubyObject

coerce

public IRubyObject coerce(ThreadContext context,
                          IRubyObject other)
nucomp_coerce


abs

public IRubyObject abs(ThreadContext context)
nucomp_abs

Overrides:
abs in class RubyNumeric

abs2

public IRubyObject abs2(ThreadContext context)
nucomp_abs2

Overrides:
abs2 in class RubyNumeric

arg

public IRubyObject arg(ThreadContext context)
nucomp_arg

Overrides:
arg in class RubyNumeric

rect

public IRubyObject rect(ThreadContext context)
nucomp_rect

Overrides:
rect in class RubyNumeric

polar

public IRubyObject polar(ThreadContext context)
nucomp_polar

Overrides:
polar in class RubyNumeric

conjugate

public IRubyObject conjugate(ThreadContext context)
nucomp_conjugate

Overrides:
conjugate in class RubyNumeric

real_p

public IRubyObject real_p(ThreadContext context)
nucomp_real_p


complex_p

public IRubyObject complex_p(ThreadContext context)
nucomp_complex_p


exact_p

public IRubyObject exact_p(ThreadContext context)
nucomp_exact_p


inexact_p

public IRubyObject inexact_p(ThreadContext context)
nucomp_exact_p


demoninator

public IRubyObject demoninator(ThreadContext context)
nucomp_denominator


numerator

public IRubyObject numerator(ThreadContext context)
nucomp_numerator

Overrides:
numerator in class RubyNumeric

hash

public IRubyObject hash(ThreadContext context)
nucomp_hash


eql_p

public IRubyObject eql_p(ThreadContext context,
                         IRubyObject other)
nucomp_eql_p

Overrides:
eql_p in class RubyNumeric

to_s

public IRubyObject to_s(ThreadContext context)
nucomp_to_s


inspect

public IRubyObject inspect(ThreadContext context)
nucomp_inspect


marshal_dump

public IRubyObject marshal_dump(ThreadContext context)
nucomp_marshal_dump


marshal_load

public IRubyObject marshal_load(ThreadContext context,
                                IRubyObject arg)
nucomp_marshal_load


to_i

public IRubyObject to_i(ThreadContext context)
nucomp_to_i


to_f

public IRubyObject to_f(ThreadContext context)
nucomp_to_f


to_r

public IRubyObject to_r(ThreadContext context)
nucomp_to_f



Copyright © 2002-2009 JRuby Team. All Rights Reserved.