Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/roctave.rb

Instance Method Summary collapse

Instance Method Details

#absObject



121
122
123
# File 'lib/roctave.rb', line 121

def abs
  self.collect(&:abs)
end

#argObject



133
134
135
136
# File 'lib/roctave.rb', line 133

def arg
  #self.collect{|e| e.kind_of?(Complex) ? e.arg : Complex(e).arg}
  self.collect(&:arg)
end

#conjObject



138
139
140
# File 'lib/roctave.rb', line 138

def conj
  self.collect(&:conj)
end

#imagObject



129
130
131
# File 'lib/roctave.rb', line 129

def imag
  self.collect(&:imag)
end

#realObject



125
126
127
# File 'lib/roctave.rb', line 125

def real
  self.collect(&:real)
end