@@ -176,7 +176,7 @@ Copy a {0}.
176
176
)pbdoc" ;
177
177
}
178
178
thing.def (py::init ([](std::vector<Scalar> const & imgs) {
179
- return PTransfSubclass::make (imgs);
179
+ return to< PTransfSubclass> (imgs);
180
180
}),
181
181
py::arg (" imgs" ),
182
182
fmt::format (
@@ -432,7 +432,7 @@ among the points where :math:`f` is defined).
432
432
433
433
thing.def (py::init ([](std::vector<Scalar> const & dom,
434
434
std::vector<Scalar> const & im,
435
- Scalar deg) { return PPerm_::make (dom, im, deg); }),
435
+ size_t deg) { return to< PPerm_> (dom, im, deg); }),
436
436
py::arg (" dom" ),
437
437
py::arg (" im" ),
438
438
py::arg (" M" ),
@@ -465,7 +465,6 @@ all ``i`` and which is :any:`UNDEFINED` on every other value in the range
465
465
void bind_perm (py::module & m, std::string const & name) {
466
466
using Perm_ = Perm<N, Scalar>;
467
467
468
- using container_type = typename Perm_::container_type;
469
468
py::class_<Perm_, Transf<N, Scalar>> thing (m,
470
469
name.c_str (),
471
470
R"pbdoc(
@@ -529,7 +528,7 @@ of :math:`\{0, 1, \ldots, n - 1\}` for some integer :math:`n` called the
529
528
[name](Perm_ const & f) { return transf_repr (name, f); });
530
529
m.def (" inverse" , py::overload_cast<Perm_ const &>(&inverse<N, Scalar>));
531
530
} // bind_perm
532
- } // namespace
531
+ } // namespace
533
532
534
533
void init_transf (py::module & m) {
535
534
// Base classes
0 commit comments