Sha256: 431ae5a7f73eaab8f79efed16f685bf5126b0aa2a99b5ac8c7a9e3166d5fc7ab

Contents?: true

Size: 1.05 KB

Versions: 14

Compression:

Stored size: 1.05 KB

Contents

/*
  rb_gsl_rational.h
  Ruby/GSL: Ruby extension library for GSL (GNU Scientific Library)
    (C) Copyright 2001-2004 by Yoshiki Tsunesada

  Ruby/GSL is free software: you can redistribute it and/or modify it
  under the terms of the GNU General Public License.
  This library is distributed in the hope that it will be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or POLYNESS FOR A PARTICULAR PURPOSE.
*/

#ifndef ___RB_GSL_RATIONAL_H___
#define ___RB_GSL_RATIONAL_H___

#include "ruby.h"
#include <gsl/gsl_vector.h>
#include <gsl/gsl_poly.h>
#include <gsl/gsl_complex.h>
#include <gsl/gsl_complex_math.h>
#include "rb_gsl_complex.h"
#include "rb_gsl_array.h"
#include "rb_gsl_poly.h"

typedef struct ___gsl_rational 
{
  VALUE num, den;
  gsl_poly *pnum;
  gsl_poly *pden;
} gsl_rational;

gsl_rational* gsl_rational_alloc();
gsl_rational* gsl_rational_new(const gsl_poly *num, const gsl_poly *den);
gsl_rational* gsl_rational_new2(const gsl_poly *num, const gsl_poly *den);
void gsl_rational_free(gsl_rational *r);

#endif

Version data entries

14 entries across 14 versions & 5 rubygems

Version Path
gsl-nmatrix-1.15.3.2 include/rb_gsl_rational.h
romanbsd-gsl-1.11.2.2 include/rb_gsl_rational.h
gsl-nmatrix-1.15.3.1 include/rb_gsl_rational.h
rb-gsl-1.16.0 include/rb_gsl_rational.h
rb-gsl-1.15.3.2 include/rb_gsl_rational.h
rb-gsl-1.15.3.1 include/rb_gsl_rational.h
blackwinter-gsl-1.15.3.2 include/rb_gsl_rational.h
gsl-nmatrix-1.15.3.0 include/rb_gsl_rational.h
gsl-1.15.3 include/rb_gsl_rational.h
gsl-1.14.7 include/rb_gsl_rational.h
gsl-1.14.6 include/rb_gsl_rational.h
gsl-1.14.5 include/rb_gsl_rational.h
gsl-1.12.109 include/rb_gsl_rational.h
gsl-1.12.108 include/rb_gsl_rational.h