Class: Hornetseye::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/hornetseye-linalg/node.rb

Instance Method Summary collapse

Instance Method Details

#orig_to_dmatrixObject



20
# File 'lib/hornetseye-linalg/node.rb', line 20

alias_method :orig_to_dmatrix, :to_dmatrix

#orig_to_smatrixObject



29
# File 'lib/hornetseye-linalg/node.rb', line 29

alias_method :orig_to_smatrix, :to_smatrix

#to_dmatrixObject



22
23
24
25
26
27
# File 'lib/hornetseye-linalg/node.rb', line 22

def to_dmatrix
  source = roll.to_dfloat.memorise
  retval = source.orig_to_dmatrix
  retval.instance_eval { @source = source }
  retval
end

#to_smatrixObject



31
32
33
34
35
36
# File 'lib/hornetseye-linalg/node.rb', line 31

def to_smatrix
  source = roll.to_sfloat.memorise
  retval = source.orig_to_smatrix
  retval.instance_eval { @source = source }
  retval
end