py_cat.cpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2017 Sebastian Koch <s.koch@tu-berlin.de> and Daniele Panozzo <daniele.panozzo@gmail.com>
  4. //
  5. // This Source Code Form is subject to the terms of the Mozilla Public License
  6. // v. 2.0. If a copy of the MPL was not distributed with this file, You can
  7. // obtain one at http://mozilla.org/MPL/2.0/.
  8. m.def("cat", []
  9. (
  10. const int dim,
  11. const Eigen::MatrixXd& A,
  12. const Eigen::MatrixXd& B,
  13. Eigen::MatrixXd& C
  14. )
  15. {
  16. return igl::cat(dim, A, B, C);
  17. }, __doc_igl_cat,
  18. py::arg("dim"), py::arg("A"), py::arg("B"), py::arg("C"));
  19. m.def("cat", []
  20. (
  21. const int dim,
  22. Eigen::MatrixXd& A,
  23. Eigen::MatrixXd& B
  24. )
  25. {
  26. return igl::cat(dim, A, B);
  27. }, __doc_igl_cat,
  28. py::arg("dim"), py::arg("A"), py::arg("B"));
  29. m.def("cat", []
  30. (
  31. const int dim,
  32. Eigen::MatrixXi& A,
  33. Eigen::MatrixXi& B
  34. )
  35. {
  36. return igl::cat(dim, A, B);
  37. }, __doc_igl_cat,
  38. py::arg("dim"), py::arg("A"), py::arg("B"));
  39. //m.def("cat", []
  40. //(
  41. // const std::vector<std::vector<Eigen::MatrixXd > > & A,
  42. // Eigen::MatrixXd & C
  43. //)
  44. //{
  45. // return igl::cat(A, C);
  46. //}, __doc_igl_cat,
  47. //py::arg("A"), py::arg("C"));
  48. m.def("cat", []
  49. (
  50. const int dim,
  51. const Eigen::SparseMatrix<double>& A,
  52. const Eigen::SparseMatrix<double>& B,
  53. Eigen::SparseMatrix<double>& C
  54. )
  55. {
  56. return igl::cat(dim, A, B, C);
  57. }, __doc_igl_cat,
  58. py::arg("dim"), py::arg("A"), py::arg("B"), py::arg("C"));