Class: Kumi::RegistryV2::Function
- Inherits:
-
Struct
- Object
- Struct
- Kumi::RegistryV2::Function
- Defined in:
- lib/kumi/registry_v2.rb
Overview
— NEW: Define the Function struct —
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
14 15 16 |
# File 'lib/kumi/registry_v2.rb', line 14 def aliases @aliases end |
#dtype ⇒ Object
Returns the value of attribute dtype
14 15 16 |
# File 'lib/kumi/registry_v2.rb', line 14 def dtype @dtype end |
#expand ⇒ Object
Returns the value of attribute expand
14 15 16 |
# File 'lib/kumi/registry_v2.rb', line 14 def end |
#folding_class_method ⇒ Object
Returns the value of attribute folding_class_method
14 15 16 |
# File 'lib/kumi/registry_v2.rb', line 14 def folding_class_method @folding_class_method end |
#id ⇒ Object
Returns the value of attribute id
14 15 16 |
# File 'lib/kumi/registry_v2.rb', line 14 def id @id end |
#kind ⇒ Object
Returns the value of attribute kind
14 15 16 |
# File 'lib/kumi/registry_v2.rb', line 14 def kind @kind end |
#options ⇒ Object
Returns the value of attribute options
14 15 16 |
# File 'lib/kumi/registry_v2.rb', line 14 def end |
#params ⇒ Object
Returns the value of attribute params
14 15 16 |
# File 'lib/kumi/registry_v2.rb', line 14 def params @params end |
#reduction_strategy ⇒ Object
Returns the value of attribute reduction_strategy
14 15 16 |
# File 'lib/kumi/registry_v2.rb', line 14 def reduction_strategy @reduction_strategy end |
Instance Method Details
#dtype_rule ⇒ Object
24 25 26 |
# File 'lib/kumi/registry_v2.rb', line 24 def dtype_rule @dtype_rule ||= Loader.build_dtype_rule_from_yaml(dtype) end |
#elementwise? ⇒ Boolean
18 |
# File 'lib/kumi/registry_v2.rb', line 18 def elementwise? = kind == :elementwise |
#param_names ⇒ Object
20 21 22 |
# File 'lib/kumi/registry_v2.rb', line 20 def param_names @param_names ||= params.map { |p| p["name"].to_sym } end |
#reduce? ⇒ Boolean
16 |
# File 'lib/kumi/registry_v2.rb', line 16 def reduce? = kind == :reduce |
#select? ⇒ Boolean
17 |
# File 'lib/kumi/registry_v2.rb', line 17 def select? = id == SELECT_ID |