64 lines
1.4 KiB
C++
64 lines
1.4 KiB
C++
// This file is part of libigl, a simple c++ geometry processing library.
|
|
//
|
|
// Copyright (C) 2017 Sebastian Koch <s.koch@tu-berlin.de> and Daniele Panozzo <daniele.panozzo@gmail.com>
|
|
//
|
|
// This Source Code Form is subject to the terms of the Mozilla Public License
|
|
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
|
|
// obtain one at http://mozilla.org/MPL/2.0/.
|
|
m.def("cat", []
|
|
(
|
|
const int dim,
|
|
const Eigen::MatrixXd& A,
|
|
const Eigen::MatrixXd& B,
|
|
Eigen::MatrixXd& C
|
|
)
|
|
{
|
|
return igl::cat(dim, A, B, C);
|
|
}, __doc_igl_cat,
|
|
py::arg("dim"), py::arg("A"), py::arg("B"), py::arg("C"));
|
|
|
|
m.def("cat", []
|
|
(
|
|
const int dim,
|
|
Eigen::MatrixXd& A,
|
|
Eigen::MatrixXd& B
|
|
)
|
|
{
|
|
return igl::cat(dim, A, B);
|
|
}, __doc_igl_cat,
|
|
py::arg("dim"), py::arg("A"), py::arg("B"));
|
|
|
|
m.def("cat", []
|
|
(
|
|
const int dim,
|
|
Eigen::MatrixXi& A,
|
|
Eigen::MatrixXi& B
|
|
)
|
|
{
|
|
return igl::cat(dim, A, B);
|
|
}, __doc_igl_cat,
|
|
py::arg("dim"), py::arg("A"), py::arg("B"));
|
|
|
|
//m.def("cat", []
|
|
//(
|
|
// const std::vector<std::vector<Eigen::MatrixXd > > & A,
|
|
// Eigen::MatrixXd & C
|
|
//)
|
|
//{
|
|
// return igl::cat(A, C);
|
|
//}, __doc_igl_cat,
|
|
//py::arg("A"), py::arg("C"));
|
|
|
|
m.def("cat", []
|
|
(
|
|
const int dim,
|
|
const Eigen::SparseMatrix<double>& A,
|
|
const Eigen::SparseMatrix<double>& B,
|
|
Eigen::SparseMatrix<double>& C
|
|
)
|
|
{
|
|
return igl::cat(dim, A, B, C);
|
|
}, __doc_igl_cat,
|
|
py::arg("dim"), py::arg("A"), py::arg("B"), py::arg("C"));
|
|
|