Class: Ikra::Symbolic::ArraySelectCommand

Inherits:
Object
  • Object
show all
Includes:
ArrayCommand
Defined in:
lib/symbolic/visitor.rb,
lib/symbolic/symbolic.rb

Instance Attribute Summary

Attributes included from ArrayCommand

#block, #block_size, #generator_node, #gpu_result_pointer, #input, #keep, #unique_id

Instance Method Summary collapse

Methods included from ArrayCommand

#==, #[], #block_def_node, #block_parameter_names, #command_binding, #command_translator_class, #dimensions, #each, #eql?, #execute, #externals, #has_previous_result?, #hash, #ikra_type, included, #lexical_externals, #pack, #post_execute, reset_unique_id, #result_type, #set_unique_id, #size, #to_c_type, #to_command, #to_ffi_type, #to_ruby_type, #to_s, #with_index

Methods included from Types::RubyType

#class_id, #eql?, #hash, #inspect, #is_primitive?, #is_union_type?, #should_generate_self_arg?, #to_array_type, #to_c_type, #to_ruby_type, #to_str, #to_union_type

Methods included from ParallelOperations

#&, #*, #+, #-, #/, #<, #<=, #>, #>=, #^, #pcombine, #pmap, #preduce, #pstencil, #pzip, #|

Constructor Details

#initialize(target, block) ⇒ ArraySelectCommand

Returns a new instance of ArraySelectCommand.



784
785
786
787
788
789
790
791
# File 'lib/symbolic/symbolic.rb', line 784

def initialize(target, block)
    super()

    @block = block

    # One element per thread
    @input = [SingleInput.new(command: target.to_command, pattern: :tid)]
end

Instance Method Details

#accept(visitor) ⇒ Object



28
29
30
# File 'lib/symbolic/visitor.rb', line 28

def accept(visitor)
    visitor.visit_array_select_command(self)
end