class EEEval::AST::NumberNode

Overview

Leaf node: a literal number (e.g. 3.14, -2.0)

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(value : Float64) #

[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]