ocmath_free

 

Contents

Description

Free memory allocated by ocmath functions(calling NAG_FREE).

Syntax

void ocmath_free( void * pvoid )

Parameters

pvoid
[input] A pointer to a type void

Return

Examples

EX1

void     ocmath_free_ex1()
{
    int i, j, mx, my, npx, npy;
    double fg[400], tx[20], ty[20];
    double xhi, yhi, xlo, ylo, step;
    ocmath_2dSpline spline;

    mx = 7;
    my = 6;
    double x[20] = {1.0, 1.10, 1.30, 1.50, 1.60, 1.80, 2.00};

    double y[20] = {0.00, 0.10, 0.40, 0.70, 0.90, 1.00};

    double f[400] = {1.00, 1.10, 1.40, 1.70, 1.90, 2.00, 1.21, 1.31, 1.61, 1.91,
                     2.11, 2.21, 1.69, 1.79, 2.09, 2.39, 2.59, 2.69, 2.25, 2.35,
                     2.65, 2.95, 3.15, 3.25, 2.56, 2.66, 2.96, 3.26, 3.46, 3.56,
                     3.24, 3.34, 3.64, 3.94, 4.14, 4.24, 4.00, 4.10, 4.40, 4.70,
                     4.90, 5.00};


    ocmath_2d_spline_interpolant(mx, my, x, y, f, &spline);
    ocmath_free(spline.lamda);
    ocmath_free(spline.mu);
    ocmath_free(spline.c);
}

Remark

See Also

header to Include

origin.h

Reference

NAG_FREENAG_FREE, NAG Manual