fx Derived Type

type, private :: fx

an [x,f(x)] cached pair.


Inherited by

type~~fx~~InheritedByGraph type~fx fx type~function_cache function_cache type~function_cache->type~fx c type~numdiff_type numdiff_type type~numdiff_type->type~function_cache cache

Components

Type Visibility Attributes Name Initial
real(kind=wp), private, dimension(:), allocatable :: x

vector of input values

real(kind=wp), private, dimension(:), allocatable :: f

vector of output functions f(x) note: only the elements indicated by ifs will have valid values. The others will be dummy values.

integer, private, dimension(:), allocatable :: ifs

elements of f present in the cache (this is just an array of the indices present in f)


Source Code

    type :: fx
        !! an [x,f(x)] cached pair.
        private
        real(wp),dimension(:),allocatable :: x    !! vector of input values
        real(wp),dimension(:),allocatable :: f    !! vector of output functions `f(x)`
                                                  !! note: only the elements indicated by `ifs`
                                                  !! will have valid values. The others will
                                                  !! be dummy values.
        integer,dimension(:),allocatable  :: ifs  !! elements of `f` present in the cache
                                                  !! (this is just an array of the indices
                                                  !! present in `f`)
    end type fx