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("colon", []
9 (
10   const double low,
11   const double step,
12   const double high,
13   Eigen::MatrixXd& I
14 )
__anond9fb0ed70102( const double low, const double step, const double high, Eigen::MatrixXd& I ) 15 {
16   Eigen::Matrix<double,Eigen::Dynamic,1> temp;
17   igl::colon<double>(low,step,high,temp);
18   I = temp;
19 }, __doc_igl_colon,
20 py::arg("low"), py::arg("step"), py::arg("high"), py::arg("I"));
21 
22 m.def("colon", []
23 (
24   const double low,
25   const double high,
26   Eigen::MatrixXd& I
27 )
__anond9fb0ed70202( const double low, const double high, Eigen::MatrixXd& I ) 28 {
29   Eigen::Matrix<double,Eigen::Dynamic,1> temp;
30   igl::colon<double>(low,high,temp);
31   I = temp;
32 }, __doc_igl_colon,
33 py::arg("low"), py::arg("high"), py::arg("I"));
34 
35 m.def("colon", []
36 (
37   const double& low,
38   const double& high
39 )
__anond9fb0ed70302( const double& low, const double& high ) 40 {
41   return Eigen::MatrixXd(igl::colon<double>(low,high));
42 }, __doc_igl_colon,
43 py::arg("low"), py::arg("high"));
44 
45 
46 m.def("coloni", []
47 (
48   const int low,
49   const int step,
50   const int high,
51   Eigen::MatrixXi& I
52 )
__anond9fb0ed70402( const int low, const int step, const int high, Eigen::MatrixXi& I ) 53 {
54   Eigen::Matrix<int,Eigen::Dynamic,1> temp;
55   igl::colon<int>(low,step,high,temp);
56   I = temp;
57 }, __doc_igl_colon,
58 py::arg("low"), py::arg("step"), py::arg("high"), py::arg("I"));
59 
60 m.def("coloni", []
61 (
62   const int low,
63   const int high,
64   Eigen::MatrixXi& I
65 )
__anond9fb0ed70502( const int low, const int high, Eigen::MatrixXi& I ) 66 {
67   Eigen::Matrix<int,Eigen::Dynamic,1> temp;
68   igl::colon<int>(low,high,temp);
69   I = temp;
70 }, __doc_igl_colon,
71 py::arg("low"), py::arg("high"), py::arg("I"));
72 
73 m.def("coloni", []
74 (
75   const int& low,
76   const int& high
77 )
__anond9fb0ed70602( const int& low, const int& high ) 78 {
79   return Eigen::MatrixXi(igl::colon<int>(low,high));
80 }, __doc_igl_colon,
81 py::arg("low"), py::arg("high"));
82