Skip to content

Commit

Permalink
docs: remove documentation stubs from cpp file
Browse files Browse the repository at this point in the history
  • Loading branch information
jolars committed Nov 29, 2023
1 parent 4246e41 commit 69bf98c
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
#include <pybind11/eigen.h>
#include <pybind11/pybind11.h>

#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)

int
fit_slope(const Eigen::MatrixXd x,
const Eigen::MatrixXd y,
Expand All @@ -18,32 +15,7 @@ fit_slope(const Eigen::MatrixXd x,
return 0;
}

namespace py = pybind11;

PYBIND11_MODULE(_sortedl1, m)
{
m.doc() = R"pbdoc(
Pybind11 example plugin
-----------------------
.. currentmodule:: _sortedl1
.. autosummary::
:toctree: _generate
fit_slope
)pbdoc";

m.def("fit_slope", &fit_slope, R"pbdoc(
Fit SLOPE
---------------
Let's fit SLOPE!
)pbdoc");

#ifdef VERSION_INFO
m.attr("__version__") = MACRO_STRINGIFY(VERSION_INFO);
#else
m.attr("__version__") = "dev";
#endif
m.def("fit_slope", &fit_slope);
}

0 comments on commit 69bf98c

Please sign in to comment.