Ejemplo n.º 1
0
int mygsl_histogram3d_fread(FILE * stream, mygsl_histogram3d * h)
{
    int status = gsl_block_raw_fread (stream, h->xrange, h->nx + 1, 1);
    if (status)    return status;
    status = gsl_block_raw_fread (stream, h->yrange, h->ny + 1, 1);
    if (status)    return status;
    status = gsl_block_raw_fread (stream, h->zrange, h->nz + 1, 1);
    if (status)    return status;
    status = gsl_block_raw_fread (stream, h->bin, h->nx * h->ny * h->nz, 1);
    return status;
}
Ejemplo n.º 2
0
int
gsl_histogram_fread (FILE * stream, gsl_histogram * h)
{
  int status = gsl_block_raw_fread (stream, h->range, h->n + 1, 1);

  if (status)
    return status;

  status = gsl_block_raw_fread (stream, h->bin, h->n, 1);
  return status;
}
Ejemplo n.º 3
0
int
gsl_histogram2d_fread (FILE * stream, gsl_histogram2d * h)
{
  int status = gsl_block_raw_fread (stream, h->xrange, h->nx + 1, 1);

  if (status)
    return status;

  status = gsl_block_raw_fread (stream, h->yrange, h->ny + 1, 1);

  if (status)
    return status;

  status = gsl_block_raw_fread (stream, h->bin, h->nx * h->ny, 1);

  return status;
}