Class: RubyZero::Core::Functions::Exp
- Defined in:
- lib/rubyzero/core/functions/elementary_functions.rb
Instance Attribute Summary
Attributes inherited from Function
Instance Method Summary collapse
Methods inherited from Function
#call, #initialize, #inspect, plot
Constructor Details
This class inherits a constructor from RubyZero::Core::Functions::Function
Instance Method Details
#backward(dy) ⇒ Object
24 25 26 27 |
# File 'lib/rubyzero/core/functions/elementary_functions.rb', line 24 def backward(dy) x1 = @inputs[0] return [dy * self.new.call(x1)] end |