Sha256: 8686b9ec164fbea5c6c475435bfb4dd1d1b542d97adaeacb2328613d1fdb7318

Contents?: true

Size: 625 Bytes

Versions: 9

Compression:

Stored size: 625 Bytes

Contents

/*
  LAPACK wrapper for Ruby/Numo
    (C) Copyright 2017 by Masahiro TANAKA

  This program is free software.
  NO WARRANTY.
*/

#include <assert.h>
#include <ruby.h>
#include "numo/narray.h"
#include "numo/template.h"
#include "numo_lapack.h"

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

<% include_files.each do |f| %>
#include <<%=f%>>
<% end %>

<% children.each do |c|%>
<%= c.result+"\n\n" %>
<% end %>

void
Init_<%=lib_name%>(void)
{
    VALUE <%=ns_var%>;

    <%=ns_var%> = rb_define_module("Numo");

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
numo-linalg-0.1.7 ext/numo/linalg/lapack/tmpl/lib.c
numo-linalg-0.1.6 ext/numo/linalg/lapack/tmpl/lib.c
numo-linalg-0.1.5 ext/numo/linalg/lapack/tmpl/lib.c
numo-linalg-0.1.4 ext/numo/linalg/lapack/tmpl/lib.c
numo-linalg-0.1.3 ext/numo/linalg/lapack/tmpl/lib.c
numo-linalg-0.1.2 ext/numo/linalg/lapack/tmpl/lib.c
numo-linalg-0.1.1 ext/numo/linalg/lapack/tmpl/lib.c
numo-linalg-0.1.0 ext/numo/linalg/lapack/tmpl/lib.c
numo-linalg-0.0.1 ext/numo/linalg/lapack/tmpl/lib.c