Module farr

Functions operating on arrays of floating-point values.

farr_sample_int and farr_sample_float can be used to convert arrays of ints and floats to arrays of doubles.

Sampling Arrays

farr_sample (A, i1, i2, istep) sample an array of doubles.
farr_sample_float (A, i1, i2, istep) sample an array of floats
farr_sample_int (A, i1, i2, istep) sample an array of ints

Creating and Transforming

farr_range (x1, x2, dx) an array generated between x1 and x2, with delta dx.
farr_map (a, f) create a new array by applying a function to each value of an array.
farr_scale (A, m, c) transform an array by multipying its values by m and adding c.
farr_from_seq () array of doubles from a sequence
farr_copy () create dynanic array from a statically declared array of doubles.
farr_2 (x1, x2) double array of two elements.
farr_4 (x1, x2, x3, x4) double array of four elements.


Sampling Arrays

farr_sample (A, i1, i2, istep)
sample an array of doubles.

Parameters:

  • A double *
  • i1 int
  • i2 int
  • istep int

Returns:

    double *
farr_sample_float (A, i1, i2, istep)
sample an array of floats

Parameters:

  • A float *
  • i1 int
  • i2 int
  • istep int

Returns:

    double *
farr_sample_int (A, i1, i2, istep)
sample an array of ints

Parameters:

  • A int *
  • i1 int
  • i2 int
  • istep int

Returns:

    double *

Creating and Transforming

farr_range (x1, x2, dx)
an array generated between x1 and x2, with delta dx.

Parameters:

  • x1 double
  • x2 double
  • dx double

Returns:

    double *
farr_map (a, f)
create a new array by applying a function to each value of an array.

Parameters:

  • a double *
  • f FarrMapFun

Returns:

    double *
farr_scale (A, m, c)
transform an array by multipying its values by m and adding c.

Parameters:

  • A double *
  • m double
  • c double
farr_from_seq ()
array of doubles from a sequence
farr_copy ()
create dynanic array from a statically declared array of doubles.
farr_2 (x1, x2)
double array of two elements.

Parameters:

  • x1 double
  • x2 double

Returns:

    double *
farr_4 (x1, x2, x3, x4)
double array of four elements.

Parameters:

  • x1 double
  • x2 double
  • x3 double
  • x4 double

Returns:

    double *
generated by LDoc 1.4.3 Last updated 2015-04-27 12:35:55