/* Copyright (c) 1997-2010
   Ewgenij Gawrilow, Michael Joswig (Technische Universitaet Darmstadt, Germany)
   http://www.polymake.de

   This program is free software; you can redistribute it and/or modify it
   under the terms of the GNU General Public License as published by the
   Free Software Foundation; either version 2, or (at your option) any
   later version: http://www.gnu.org/licenses/gpl.txt.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
--------------------------------------------------------------------------------
   $Project: polymake $$Id: wrap-canonical_coord.cc 10050 2011-03-01 15:46:48Z paffenho $
*/

#include "polymake/Matrix.h"
#include "polymake/Rational.h"
#include "polymake/Vector.h"
#include "polymake/SparseMatrix.h"
#include "polymake/IncidenceMatrix.h"
#include "polymake/Integer.h"
#include "polymake/SparseVector.h"

namespace polymake { namespace polytope {
///==== Automatically generated contents follow.    Please do not delete this line. ====
   template <typename T0>
   FunctionInterface4perl( canonicalize_polytope_generators_X2_f16, T0 ) {
      perl::Value arg0(stack[0]);
      WrapperReturnVoid( canonicalize_polytope_generators(arg0.get<T0>()) );
   };
   int canonicalize_polytope_generators(perl::Anything);

   template <typename T0>
   FunctionInterface4perl( add_extra_polytope_ineq_X2_f16, T0 ) {
      perl::Value arg0(stack[0]);
      WrapperReturnVoid( add_extra_polytope_ineq(arg0.get<T0>()) );
   };
   int add_extra_polytope_ineq(perl::Anything);

   template <typename T0>
   FunctionInterface4perl( canonicalize_rays_X2_f16, T0 ) {
      perl::Value arg0(stack[0]);
      WrapperReturnVoid( canonicalize_rays(arg0.get<T0>()) );
   };
   int canonicalize_rays(perl::Anything);

   template <typename T0>
   FunctionInterface4perl( rotate_hyperplane_X_x, T0 ) {
      perl::Value arg0(stack[0]), arg1(stack[1]);
      WrapperReturn( rotate_hyperplane(arg0.get<T0>(), arg1) );
   };
   int rotate_hyperplane(perl::Anything,perl::Anything);

   template <typename T0, typename T1, typename T2>
   FunctionInterface4perl( find_facet_permutation_X_X_X, T0,T1,T2 ) {
      perl::Value arg0(stack[0]), arg1(stack[1]), arg2(stack[2]);
      WrapperReturn( find_facet_permutation(arg0.get<T0>(), arg1.get<T1>(), arg2.get<T2>()) );
   };
   int find_facet_permutation(perl::Anything,perl::Anything,perl::Anything);

   template <typename T0>
   FunctionInterface4perl( dehomogenize_X, T0 ) {
      perl::Value arg0(stack[0]);
      WrapperReturn( dehomogenize(arg0.get<T0>()) );
   };
   int dehomogenize(perl::Anything);

   template <typename T0>
   FunctionInterface4perl( canonicalize_points_X2_f16, T0 ) {
      perl::Value arg0(stack[0]);
      WrapperReturnVoid( canonicalize_points(arg0.get<T0>()) );
   };
   int canonicalize_points(perl::Anything);

   template <typename T0>
   FunctionInterface4perl( orthogonalize_subspace_X2_f16, T0 ) {
      perl::Value arg0(stack[0]);
      WrapperReturnVoid( orthogonalize_subspace(arg0.get<T0>()) );
   };
   int orthogonalize_subspace(perl::Anything);

   template <typename T0>
   FunctionInterface4perl( canonicalize_facets_X2_f16, T0 ) {
      perl::Value arg0(stack[0]);
      WrapperReturnVoid( canonicalize_facets(arg0.get<T0>()) );
   };
   int canonicalize_facets(perl::Anything);

   template <typename T0, typename T1>
   FunctionInterface4perl( find_vertex_permutation_X_X, T0,T1 ) {
      perl::Value arg0(stack[0]), arg1(stack[1]);
      WrapperReturn( find_vertex_permutation(arg0.get<T0>(), arg1.get<T1>()) );
   };
   int find_vertex_permutation(perl::Anything,perl::Anything);

   FunctionInstance4perl(canonicalize_points_X2_f16, perl::Canned< Matrix< Rational > >);
   FunctionInstance4perl(canonicalize_points_X2_f16, perl::Canned< Vector< Rational > >);
   FunctionInstance4perl(orthogonalize_subspace_X2_f16, perl::Canned< Matrix< Rational > >);
   FunctionInstance4perl(canonicalize_facets_X2_f16, perl::Canned< Matrix< Rational > >);
   FunctionInstance4perl(find_vertex_permutation_X_X, perl::Canned< const Matrix< Rational > >, perl::Canned< const Matrix< Rational > >);
   FunctionInstance4perl(canonicalize_points_X2_f16, perl::Canned< SparseMatrix< Rational, NonSymmetric > >);
   FunctionInstance4perl(dehomogenize_X, perl::Canned< const Matrix< double > >);
   FunctionInstance4perl(find_facet_permutation_X_X_X, perl::Canned< const Matrix< Rational > >, perl::Canned< const Matrix< Rational > >, perl::Canned< const Matrix< Rational > >);
   FunctionInstance4perl(canonicalize_points_X2_f16, perl::Canned< Matrix< double > >);
   FunctionInstance4perl(canonicalize_points_X2_f16, perl::Canned< Vector< double > >);
   FunctionInstance4perl(find_vertex_permutation_X_X, perl::Canned< const Matrix< double > >, perl::Canned< const Matrix< double > >);
   FunctionInstance4perl(find_facet_permutation_X_X_X, perl::Canned< const Matrix< double > >, perl::Canned< const Matrix< double > >, perl::Canned< const Matrix< double > >);
   FunctionInstance4perl(orthogonalize_subspace_X2_f16, perl::Canned< Matrix< double > >);
   FunctionInstance4perl(orthogonalize_subspace_X2_f16, perl::Canned< SparseMatrix< Rational, Symmetric > >);
   FunctionInstance4perl(dehomogenize_X, perl::Canned< const pm::IndexedSlice<pm::masquerade<pm::ConcatRows, pm::Matrix_base<pm::Rational> const&>, pm::Series<int, true>, void> >);
   FunctionInstance4perl(find_vertex_permutation_X_X, perl::Canned< const Matrix< Integer > >, perl::Canned< const Matrix< Integer > >);
   FunctionInstance4perl(rotate_hyperplane_X_x, perl::Canned< const pm::IndexedSlice<pm::masquerade<pm::ConcatRows, pm::Matrix_base<pm::Rational> const&>, pm::Series<int, true>, void> >);
   FunctionInstance4perl(find_facet_permutation_X_X_X, perl::Canned< const Matrix< Rational > >, perl::Canned< const SparseMatrix< Rational, NonSymmetric > >, perl::Canned< const Matrix< Rational > >);
   FunctionInstance4perl(rotate_hyperplane_X_x, perl::Canned< const pm::sparse_matrix_line<pm::AVL::tree<pm::sparse2d::traits<pm::sparse2d::traits_base<pm::Rational, true, false, (pm::sparse2d::restriction_kind)0>, false, (pm::sparse2d::restriction_kind)0> > const&, pm::NonSymmetric> >);
   FunctionInstance4perl(dehomogenize_X, perl::Canned< const Vector< double > >);
   FunctionInstance4perl(dehomogenize_X, perl::Canned< const SparseMatrix< double, NonSymmetric > >);
   FunctionInstance4perl(canonicalize_rays_X2_f16, perl::Canned< Matrix< Rational > >);
   FunctionInstance4perl(canonicalize_rays_X2_f16, perl::Canned< Vector< Rational > >);
   FunctionInstance4perl(canonicalize_rays_X2_f16, perl::Canned< Matrix< double > >);
   FunctionInstance4perl(canonicalize_rays_X2_f16, perl::Canned< SparseMatrix< Rational, NonSymmetric > >);
   FunctionInstance4perl(orthogonalize_subspace_X2_f16, perl::Canned< SparseMatrix< Rational, NonSymmetric > >);
   FunctionInstance4perl(canonicalize_points_X2_f16, perl::Canned< SparseVector< Rational > >);
   FunctionInstance4perl(add_extra_polytope_ineq_X2_f16, perl::Canned< Matrix< Rational > >);
   FunctionInstance4perl(add_extra_polytope_ineq_X2_f16, perl::Canned< Matrix< double > >);
   FunctionInstance4perl(add_extra_polytope_ineq_X2_f16, perl::Canned< SparseMatrix< double, NonSymmetric > >);
   FunctionInstance4perl(add_extra_polytope_ineq_X2_f16, perl::Canned< SparseMatrix< Rational, NonSymmetric > >);
   FunctionInstance4perl(canonicalize_rays_X2_f16, perl::Canned< Vector< double > >);
   FunctionInstance4perl(canonicalize_polytope_generators_X2_f16, perl::Canned< Matrix< double > >);
   FunctionInstance4perl(canonicalize_polytope_generators_X2_f16, perl::Canned< Matrix< Rational > >);
   FunctionInstance4perl(canonicalize_rays_X2_f16, perl::Canned< SparseMatrix< Rational, Symmetric > >);
   FunctionInstance4perl(canonicalize_polytope_generators_X2_f16, perl::Canned< SparseMatrix< Rational, NonSymmetric > >);
   FunctionInstance4perl(canonicalize_rays_X2_f16, perl::Canned< SparseVector< Rational > >);
///==== Automatically generated contents end here.  Please do not delete this line. ====
} }
