ndarray_factory Derived Type

type, public, extends(pf_factory_t) :: ndarray_factory

Type to create and destroy N-dimenstional arrays


Inherits

type~~ndarray_factory~~InheritsGraph type~ndarray_factory ndarray_factory type~pf_factory_t pf_factory_t type~ndarray_factory->type~pf_factory_t

Contents

Source Code


Type-Bound Procedures

procedure, public :: create_single => ndarray_create_single

  • public subroutine ndarray_create_single(this, x, level, shape)

    Subroutine to create a single array

    Arguments

    Type IntentOptional AttributesName
    class(ndarray_factory), intent(inout) :: this
    class(pf_encap_t), intent(inout), allocatable:: x
    integer, intent(in) :: level
    integer, intent(in) :: shape(:)

procedure, public :: create_array => ndarray_create_array

  • public subroutine ndarray_create_array(this, x, n, level, shape)

    Subroutine to create an array of arrays

    Arguments

    Type IntentOptional AttributesName
    class(ndarray_factory), intent(inout) :: this
    class(pf_encap_t), intent(inout), allocatable:: x(:)
    integer, intent(in) :: n
    integer, intent(in) :: level
    integer, intent(in) :: shape(:)

procedure, public :: destroy_single => ndarray_destroy_single

  • public subroutine ndarray_destroy_single(this, x, level, shape)

    Subroutine to destroy an single array

    Arguments

    Type IntentOptional AttributesName
    class(ndarray_factory), intent(inout) :: this
    class(pf_encap_t), intent(inout), allocatable:: x
    integer, intent(in) :: level
    integer, intent(in) :: shape(:)

procedure, public :: destroy_array => ndarray_destroy_array

  • public subroutine ndarray_destroy_array(this, x, n, level, shape)

    Subroutine to destroy an array of arrays

    Arguments

    Type IntentOptional AttributesName
    class(ndarray_factory), intent(inout) :: this
    class(pf_encap_t), intent(inout), allocatable:: x(:)
    integer, intent(in) :: n
    integer, intent(in) :: level
    integer, intent(in) :: shape(:)

Source Code

  type, extends(pf_factory_t) :: ndarray_factory
   contains
     procedure :: create_single  => ndarray_create_single
     procedure :: create_array  => ndarray_create_array
     procedure :: destroy_single => ndarray_destroy_single
     procedure :: destroy_array => ndarray_destroy_array
  end type ndarray_factory