File size: 330 Bytes
728ed8c
 
 
 
 
3df8753
 
 
728ed8c
1
2
3
4
5
6
7
8
9
10
#include <torch/extension.h>
#include "torch_binding.h"

PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
  m.doc() = "Minkowski Question-Mark Singularity Spectrum CUDA kernel";
  m.def("compute_spectrum", &compute_spectrum,
        "Compute multifractal spectrum tau(q), alpha(q), f(alpha)",
        py::arg("A_max"), py::arg("N"));
}