Sha256: 51f48120c3cfa270c8e4c456fbfc258c3450d889d060c8b016b23fd103531be8

Contents?: true

Size: 621 Bytes

Versions: 9

Compression:

Stored size: 621 Bytes

Contents

/*
  BLAS 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_blas.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/blas/tmpl/lib.c
numo-linalg-0.1.6 ext/numo/linalg/blas/tmpl/lib.c
numo-linalg-0.1.5 ext/numo/linalg/blas/tmpl/lib.c
numo-linalg-0.1.4 ext/numo/linalg/blas/tmpl/lib.c
numo-linalg-0.1.3 ext/numo/linalg/blas/tmpl/lib.c
numo-linalg-0.1.2 ext/numo/linalg/blas/tmpl/lib.c
numo-linalg-0.1.1 ext/numo/linalg/blas/tmpl/lib.c
numo-linalg-0.1.0 ext/numo/linalg/blas/tmpl/lib.c
numo-linalg-0.0.1 ext/numo/linalg/blas/tmpl/lib.c