Sha256: a3914c585fda4a70833325bd077d0d40e0cdf345ca1d395e9fe8ab01fb888bef

Contents?: true

Size: 622 Bytes

Versions: 1

Compression:

Stored size: 622 Bytes

Contents

module ThunderSVM
  module FFI
    extend Fiddle::Importer

    libs = ThunderSVM.ffi_lib.dup
    begin
      dlload libs.shift
    rescue Fiddle::DLError => e
      retry if libs.any?
      raise e if ENV["THUNDERSVM_DEBUG"]
      raise LoadError, "Could not find ThunderSVM"
    end

    extern "void thundersvm_train(int argc, char **argv)"
    extern "void thundersvm_train_after_parse(char **option, int len, char *file_name)"
    extern "void thundersvm_predict(int argc, char **argv)"
    extern "void thundersvm_predict_after_parse(char *model_file_name, char *output_file_name, char **option, int len)"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
thundersvm-0.1.0 lib/thundersvm/ffi.rb