class EEEval::AST::UnaryOpNode

Overview

Internal node: unary operator (u-, u+)

Defined in:

eval/ast.cr

Constructors

Instance Method Summary

Instance methods inherited from class EEEval::AST::Node

evaluate(env : Hash(String, Float64)) : Float64
evaluate(env : Hash(String, Tensor(Float64, CPU(Float64)))) : Tensor(Float64, CPU(Float64))
evaluate

Constructor Detail

def self.new(op : String, operand : Node) #

[View source]

Instance Method Detail

def evaluate(env : Hash(String, Float64)) : Float64 #

[View source]
def evaluate(env : Hash(String, Tensor(Float64, CPU(Float64)))) : Tensor(Float64, CPU(Float64)) #

[View source]