c++ k function (INTERNAL)
kfunc_cpp2(dist_mat, start, end, step, Lt, n, wc, wr, cross = FALSE)
A numeric vector with the values of the k function evaluated at the required distances
A square matrix with the distances between points
A float, the start value for evaluating the k-function
A float, the last value for evaluating the k-function
A float, the jump between two evaluations of the k-function
The total length of the network
The number of points
The weight of the points represented by the columns (destinations)
The weight of the points represented by the rows (origins)
A boolean indicating if we are calculating a cross k function or not (default is FALSE)