https://github.com/cran/spatstat
Raw File
Tip revision: 557291f3fe7c263c28aba1fe2c6b4b8fc12047ab authored by Adrian Baddeley on 04 November 2018, 16:10:03 UTC
version 1.57-1
Tip revision: 557291f
dist2dpath.c
#include <R.h>
#include <R_ext/Utils.h>

/*
  given matrix of edge lengths
  compute matrix of shortest-path distances

  Uses dist2dpath.h
*/

#define FNAME Ddist2dpath
#define DTYPE double
#define FLOATY

#include "dist2dpath.h"

#undef FNAME
#undef DTYPE
#undef FLOATY

#define FNAME Idist2dpath
#define DTYPE int

#include "dist2dpath.h"

back to top