Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Origin has included all functions from NAG MARK C LIBRARY since Origin 8 released. These functions can be easily accessed from your Origin C function. In Origin 2017, the NAG library has been updated to the latest version Mark 25.

Linked Jira:  

Jira Legacy
serverJIRA (originlab.jira.com)
serverIdde9745f4-6a46-3986-b6b4-6ec476a4c732
keyORG-13393

SummaryDetails
The header file <oc_nag8.h> is replaced by <OC_nag.h>, and the header file <oc_nag_ex.h> is withdrawn.

For example:

Code Block
languagecpp
#include <OC_nag8.h>
#include <nag\OC_nag_ex.h>

need to be changed into:

Code Block
languagecpp
#include <OC_nag.h>
//#include <nag\OC_nag_ex.h>//not need, only oc_nag.h required.
Some NAG functions have been withdrawn and replaced by other functions.

For example:

  • e01sac has been replaced by e01sjc.

    Code Block
    languagecpp
    titleOrigin C: Example: Interpolation and Gridding: XYZ Gridding by Renka Cline Method
    e01sac(method, nSize, vx, vy, vz, &comm, &optional, &fail);

    need to be changed into:

    Code Block
    languagecpp
    titleOrigin C: Example: Interpolation and Gridding: XYZ Gridding by Renka Cline Method
    e01sjc(nSize, vx, vy, vz, triang, grads, &f
  • e01sbc has been replaced by e01skc.

    Code Block
    languagecpp
    titleOrigin C: Example: Interpolation and Gridding: XYZ Gridding by Renka Cline Method
    e01sbc(&comm, nRows*nCols, vxGrid, vyGrid, mat, &fail);

    need to be changed into:

    Code Block
    languagecpp
    titleOrigin C: Example: Interpolation and Gridding: XYZ Gridding by Renka Cline Method
    for(int ii=0; ii < nRows; ii++)
    {
    	for(int jj=0; jj < nCols; jj++)
    	{
    		e01skc(nSize,vx, vy, vz, triang, grads, vxGrid[jj], vyGrid[ii], &mat[jj][ii], &fail);
        }
    }
  • d01ajc has been replaced by d01sjc.

    Code Block
    languagecpp
    titleOrigin C: Example: Quadrature Integral: Simple Integral Function
    d01ajc(func, a, b, epsabs, epsrel, max_num_subint, &result, &abserr, &qp, &fail);

    need to be changed into:

    Code Block
    languagecpp
    titleOrigin C: Example: Quadrature Integral: Simple Integral Function
    d01sjc(f_callback_ex, a, b, epsabs, epsrel, max_num_subint,&result, &abserr, &qp, &comm, &fail);
Some NAG functions have been withdrawn without replacement. 

For example:

  • e01szc has been withdrawn in new NAG library.

    Code Block
    languagecpp
    titleOrigin C: Example: Interpolation and Gridding: XYZ Gridding by Renka Cline Method
    if (fail.code != NE_NOERROR)
    {
    	printf("Error from e01sac: %s\n", fail.message);
    	//nag_2d_scat_free
    	e01szc(&comm);
    	return fail.code;
    }

    need to be changed into:

    Code Block
    languagecpp
    titleOrigin C: Example: Interpolation and Gridding: XYZ Gridding by Renka Cline Method
    if (fail.code != NE_NOERROR)
    {
    	printf("Error from e01sac: %s\n", fail.message);
    	return fail.code;
    }
Some NAG functions have been added.

For example,

  1. nag_prob_dickey_fuller_unit (g01ewc), which returns the probability associated with the lower tail of the distribution for the Dickey–Fuller unit root test statistic.
  2. nag_2d_triangulate (e01eac), which generates a triangulation for a given set of two-dimensional points using the method of Renka and Cline.
  3. ...etc.
Note

Generally speaking, the function is new to NAG library in Origin 2017, if its mark of introduction is 23, 24 or 25.