fsml_manhattan Interface

public interface fsml_manhattan

Computes the Manhattan (L1) distance between two input vectors x and y of length .

The Manhattan distance is defined as:

Calls

interface~~fsml_manhattan~~CallsGraph interface~fsml_manhattan fsml_manhattan proc~f_lin_manhattan f_lin_manhattan interface~fsml_manhattan->proc~f_lin_manhattan proc~f_lin_manhattan_core f_lin_manhattan_core proc~f_lin_manhattan->proc~f_lin_manhattan_core proc~f_utl_assign_nan f_utl_assign_nan proc~f_lin_manhattan->proc~f_utl_assign_nan proc~s_err_print s_err_print proc~f_lin_manhattan->proc~s_err_print

Module Procedures

public impure function f_lin_manhattan(x, y) result(dist)

Impure wrapper function for f_lin_manhattan_core.

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: x(:)

input vector 1

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

input vector 2

Return Value real(kind=wp)

Manhattan distance