Sha256: 77d20a1795a90929290a566d497404bb17ccba6f5c014cd19b4fb6db6415b193
Contents?: true
Size: 901 Bytes
Versions: 1
Compression:
Stored size: 901 Bytes
Contents
/* <%= file_name %> Ruby/Cumo::GSL - GSL wrapper for Ruby/Cumo::NArray created on: 2017-03-11 Copyright (C) 2017 Masahiro Tanaka Copyright (C) 2018 Naotoshi Seo */ #include <ruby.h> #include <assert.h> #include "cumo.h" #include "cumo/narray.h" #include "cumo/template.h" #include "SFMT.h" #include "cumo/cuda/memory_pool.h" #include "cumo/cuda/runtime.h" <% unless type_name == 'robject' %> #include "cumo/indexer.h" <% end %> #define m_map(x) m_num_to_data(rb_yield(m_data_to_num(x))) <% id_decl.each do |x| %> <%= x %> <% end %> #include <<%="cumo/types/#{type_name}.h"%>> VALUE cT; extern VALUE cRT; <% children.each do |c|%> <%= c.result+"\n\n" %> <% end %> void Init_<%=lib_name%>(void) { VALUE hCast, <%=ns_var%>; <%=ns_var%> = rb_define_module("Cumo"); <% id_assign.each do |x| %> <%= x %><% end %> <% children.each do |c| %> <%= c.init_def %> <% end %> }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cumo-0.1.0 | ext/cumo/narray/gen/tmpl/lib.c |