Sha256: cc506b1336d6c7da40a3743a57dd987d5988739233177272a8009c0a3da8f8f1

Contents?: true

Size: 691 Bytes

Versions: 3

Compression:

Stored size: 691 Bytes

Contents

/*
  <%= file_name %>
  Ruby/Numo::GSL - GSL wrapper for Ruby/Numo::NArray

  created on: 2017-03-11
  Copyright (C) 2017 Masahiro Tanaka
*/

#include <ruby.h>
#include <assert.h>
#include "numo/narray.h"
#include "numo/template.h"
#include "../numo_gsl.h"
<% include_files.each do |f| %>
#include <<%=f%>>
<% end %>

static VALUE <%=ns_var%>;

<% id_decl.each do |x| %>
<%= x %><% end %>

<% children.each do |c|%>
<%= c.result %>

<% end %>

void
Init_<%=lib_name%>(void)
{
    VALUE mN;
    mN = rb_define_module("Numo");
    <%=ns_var%> = rb_define_module_under(mN, "GSL");

    <% id_assign.each do |x| %>
    <%= x %><% end %>

<% children.each do |c| %>
<%= c.init_def %>
<% end %>
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
numo-gsl-0.1.2 ext/numo/gsl/gen/tmpl/lib.c
numo-gsl-0.1.1 ext/numo/gsl/gen/tmpl/lib.c
numo-gsl-0.1.0 ext/numo/gsl/gen/tmpl/lib.c