Class: Kumi::FunctionRegistry::Function
- Inherits:
-
Struct
- Object
- Struct
- Kumi::FunctionRegistry::Function
- Defined in:
- lib/kumi/function_registry.rb
Instance Attribute Summary collapse
-
#aliases ⇒ Object
Returns the value of attribute aliases.
-
#dtype ⇒ Object
Returns the value of attribute dtype.
-
#expand ⇒ Object
Returns the value of attribute expand.
-
#folding_class_method ⇒ Object
Returns the value of attribute folding_class_method.
-
#id ⇒ Object
Returns the value of attribute id.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#options ⇒ Object
Returns the value of attribute options.
-
#params ⇒ Object
Returns the value of attribute params.
-
#reduction_strategy ⇒ Object
Returns the value of attribute reduction_strategy.
Instance Method Summary collapse
- #dtype_rule ⇒ Object
- #elementwise? ⇒ Boolean
- #param_names ⇒ Object
- #reduce? ⇒ Boolean
- #select? ⇒ Boolean
Instance Attribute Details
#aliases ⇒ Object
Returns the value of attribute aliases
30 31 32 |
# File 'lib/kumi/function_registry.rb', line 30 def aliases @aliases end |
#dtype ⇒ Object
Returns the value of attribute dtype
30 31 32 |
# File 'lib/kumi/function_registry.rb', line 30 def dtype @dtype end |
#expand ⇒ Object
Returns the value of attribute expand
30 31 32 |
# File 'lib/kumi/function_registry.rb', line 30 def @expand end |
#folding_class_method ⇒ Object
Returns the value of attribute folding_class_method
30 31 32 |
# File 'lib/kumi/function_registry.rb', line 30 def folding_class_method @folding_class_method end |
#id ⇒ Object
Returns the value of attribute id
30 31 32 |
# File 'lib/kumi/function_registry.rb', line 30 def id @id end |
#kind ⇒ Object
Returns the value of attribute kind
30 31 32 |
# File 'lib/kumi/function_registry.rb', line 30 def kind @kind end |
#options ⇒ Object
Returns the value of attribute options
30 31 32 |
# File 'lib/kumi/function_registry.rb', line 30 def @options end |
#params ⇒ Object
Returns the value of attribute params
30 31 32 |
# File 'lib/kumi/function_registry.rb', line 30 def params @params end |
#reduction_strategy ⇒ Object
Returns the value of attribute reduction_strategy
30 31 32 |
# File 'lib/kumi/function_registry.rb', line 30 def reduction_strategy @reduction_strategy end |
Instance Method Details
#dtype_rule ⇒ Object
40 41 42 |
# File 'lib/kumi/function_registry.rb', line 40 def dtype_rule @dtype_rule ||= Loader.build_dtype_rule_from_yaml(dtype) end |
#elementwise? ⇒ Boolean
34 |
# File 'lib/kumi/function_registry.rb', line 34 def elementwise? = kind == :elementwise |
#param_names ⇒ Object
36 37 38 |
# File 'lib/kumi/function_registry.rb', line 36 def param_names @param_names ||= params.map { |p| p["name"].to_sym } end |
#reduce? ⇒ Boolean
32 |
# File 'lib/kumi/function_registry.rb', line 32 def reduce? = kind == :reduce |