~ubuntu-branches/debian/sid/gsl/sid

« back to all changes in this revision

Viewing changes to combination/combination.c

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2008-12-16 06:17:55 UTC
  • mfrom: (1.3.2 upstream) (3.1.15 jaunty)
  • Revision ID: james.westby@ubuntu.com-20081216061755-9la7p0qwrhopk8pl
Tags: 1.12+dfsg-1
* New upstream version released today

* doc/*: As before, removed the 'non-free' documentation to create a 
  source package that complies with Debian's interpretation of what is free. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
  return c->data ;
41
41
}
42
42
 
43
 
#ifndef HIDE_INLINE_STATIC
44
 
size_t
45
 
gsl_combination_get (const gsl_combination * c, const size_t i)
46
 
{
47
 
  if (gsl_check_range)
48
 
    {
49
 
      if (i >= c->k)            /* size_t is unsigned, can't be negative */
50
 
        {
51
 
          GSL_ERROR_VAL ("index out of range", GSL_EINVAL, 0);
52
 
        }
53
 
    }
54
 
 
55
 
  return c->data[i];
56
 
}
57
 
#endif
58
 
 
59
 
 
60
43
int
61
44
gsl_combination_valid (gsl_combination * c)
62
45
{