Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Do__Sandra
Beginner
143 Views

Hyman monotonic cubic spline

Hi,

I see in the MKL 2017 release note that the Hyman monotonic cubic spline is available, but I didn't manage to find how to use it in the MKL developer reference guide. Can you help me or provide me an example please ?

Thanks a lot.

 

0 Kudos
3 Replies
Gennady_F_Intel
Moderator
143 Views

pls take a look at DF examples bundled with mkl package ( mklroot\examples\datafittingc\source\ )

Andrew_Smith
New Contributor II
143 Views

The help seams to not have been updated or lost. I did see it once in the help for XE2019 but its gone now. I tried it biefly and it worked.

The include file mkl_df.f90 includes these defintions for spline type:

      INTEGER(KIND=4) DF_PP_DEFAULT
      INTEGER(KIND=4) DF_PP_SUBBOTIN
      INTEGER(KIND=4) DF_PP_NATURAL
      INTEGER(KIND=4) DF_PP_HERMITE
      INTEGER(KIND=4) DF_PP_BESSEL
      INTEGER(KIND=4) DF_PP_AKIMA
      INTEGER(KIND=4) DF_LOOKUP_INTERPOLANT
      INTEGER(KIND=4) DF_CR_STEPWISE_CONST_INTERPOLANT
      INTEGER(KIND=4) DF_CL_STEPWISE_CONST_INTERPOLANT
      INTEGER(KIND=4) DF_PP_HYMAN
      PARAMETER (DF_PP_DEFAULT                             =  0)
      PARAMETER (DF_PP_SUBBOTIN                            =  1)
      PARAMETER (DF_PP_NATURAL                             =  2)
      PARAMETER (DF_PP_HERMITE                             =  3)
      PARAMETER (DF_PP_BESSEL                              =  4)
      PARAMETER (DF_PP_AKIMA                               =  5)
      PARAMETER (DF_LOOKUP_INTERPOLANT                     =  6)
      PARAMETER (DF_CR_STEPWISE_CONST_INTERPOLANT          =  7)
      PARAMETER (DF_CL_STEPWISE_CONST_INTERPOLANT          =  8)
      PARAMETER (DF_PP_HYMAN                               =  9)

Note the last parameter defines the Hyman type.

Specify constant DF_PP_HYMAN when calling dfdeditppspline1d

Do__Sandra
Beginner
143 Views

Thanks a lot!

Reply