Class: Renjin::ComplexVector

Inherits:
Vector show all
Defined in:
lib/JRubyR/vector.rb

Instance Attribute Summary

Attributes inherited from Vector

#mdarray

Attributes included from RBSexp

#attr, #rvar, #scope, #sexp

Instance Method Summary collapse

Methods inherited from Vector

#!=, #%, #&, #*, #**, #+, #+@, #-, #-@, #/, #<, #<=, #==, #>, #>=, #as__mdarray, #atomic?, #character?, #coerce, #complex?, #double?, #eq, #get, #gt, #gz, #initialize, #int_div, #integer?, #l_and, #l_or, #logical?, #numeric?, #ri, #xor, #|

Methods included from Index

#[], #[]=, #_, #each, #method_missing, #parse

Methods inherited from RubySexp

build, #fassign, #initialize, #to_string

Methods included from RBSexp

#destroy, #pp, #print, #r, #rclass, #sexp?, #typeof, #unbind

Constructor Details

This class inherits a constructor from Renjin::Vector

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Renjin::Index

Instance Method Details

#argObject


Returns a vector with the argument of this complex vector




497
498
499
# File 'lib/JRubyR/vector.rb', line 497

def arg
  R.Arg(self)
end

#conjObject


Returns a vector with the conjugate of this complex vector




505
506
507
# File 'lib/JRubyR/vector.rb', line 505

def conj
  R.Conj(self)
end

#imObject


Returns a vector with the imaginary part of this vector




481
482
483
# File 'lib/JRubyR/vector.rb', line 481

def im
  R.Im(self)
end

#modObject


Returns a vector with the modulus of this vector




489
490
491
# File 'lib/JRubyR/vector.rb', line 489

def mod
  R.Mod(self)
end

#reObject


Returns a vector with the real part of this vector




473
474
475
# File 'lib/JRubyR/vector.rb', line 473

def re
  R.Re(self)
end