Module: Hilbert::Api::VectorApi
- Defined in:
- lib/hilbert/api/vector_api.rb
Class Method Summary collapse
Class Method Details
.execute(nums) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/hilbert/api/vector_api.rb', line 4 def execute(nums) case $meta_info.lang when :r "c(#{nums.join(', ')})" when :ruby "Vector[#{nums.join(', ')}]" when :python "array([#{nums.join(', ')}])" else fail "Vector is not implemented for #{$meta_info.lang_str}" end end |