KdTree Derived Type

type, public :: KdTree

KdTree in 2, 3, or N dimensions. See m_KdTree for more information on how to use this class.



Constructor

public interface KdTree

Overloaded Initializer for a KdTree.

  • public function init2D_KdTree(x, y) result(this)

    Overloaded by interface KdTree

    Arguments

    Type IntentOptional AttributesName
    real(kind=r64), intent(in) :: x(:)

    x-coordinates of the points

    real(kind=r64), intent(in) :: y(:)

    y-coordinates of the points

    Return Value type(KdTree)

    KdTree Class

  • public function init3D_KdTree(x, y, z) result(this)

    Overloaded by interface KdTree

    Arguments

    Type IntentOptional AttributesName
    real(kind=r64), intent(in) :: x(:)

    x-coordinates of the points

    real(kind=r64), intent(in) :: y(:)

    y-coordinates of the points

    real(kind=r64), intent(in) :: z(:)

    z-coordinates of the points

    Return Value type(KdTree)

    KdTree Class

  • public function initKD_KdTree(D) result(this)

    Overloaded by interface KdTree

    Arguments

    Type IntentOptional AttributesName
    real(kind=r64), intent(in) :: D(:,:)

    Coordinates of the points, the k columns contain the k dimensional values.

    Return Value type(KdTree)

    KdTree Class


Type-Bound Procedures

procedure, public :: deallocate => deallocate_KdTree

kdTree%deallocate() - deallocate the recursive pointers

  • private interface deallocate_KdTree()

    Arguments

    None