Sha256: 3d04bc95ba0839c0f76ec341c0ac14a172125895d142482e325f932e23801a76

Contents?: true

Size: 600 Bytes

Versions: 1

Compression:

Stored size: 600 Bytes

Contents

require_relative "../gen/erbpp_gsl"
require_relative "parse_stats"

ErbppGsl.read_func_pattern(
 [/^gsl_stats_(\w+)$/, stats_list=[]]
)

DefLib.new(nil) do
  set line_number: true
  set erb_dir: %w[tmpl ../gen/tmpl]
  set erb_suffix: ".c"
  set ns_var: "mG"

  name = "Stats"
  set file_name: "gsl_#{name}.c"
  set include_files: ["gsl/gsl_statistics.h"]
  set lib_name: "stats"

  DefStats.new(self) do
    set name: "stats"
    set module_name: "Stats"
    set module_var: "mStats"
    set full_module_name: "Numo::GSL::Stats"

    stats_list.each do |h|
      check_func(h)
    end
  end

end.run

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
numo-gsl-0.1.2 ext/numo/gsl/stats/erbpp_stats.rb