/* Copyright (c) 1997-2009
   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: auto-rank.cc 9392 2009-11-25 23:29:45Z gawrilow $
*/

#include <polymake.h>
#include <linalg.h>
#include <Matrix.h>
#include <Rational.h>
#include <Array.h>
#include <Set.h>
#include <SparseMatrix.h>
#include <IncidenceMatrix.h>

namespace polymake { namespace common {
///==== Automatically generated contents follow.    Please do not delete this line. ====
   template <typename T0>
   FunctionInterface4perl( rank_X, T0 ) {
      perl::Value arg0(stack[0]);
      WrapperReturn( rank(arg0.get<T0>()) );
   };

   FunctionInstance4perl(rank_X, perl::Canned< const Matrix< Rational > >);
   FunctionInstance4perl(rank_X, perl::Canned< const Matrix< double > >);
   FunctionInstance4perl(rank_X, perl::Canned< const pm::MatrixMinor<pm::RowChain<pm::Matrix<Rational> const&, pm::Matrix<Rational> const&> const&, pm::all_selector const&, pm::Array<int, void> const&> >);
   FunctionInstance4perl(rank_X, perl::Canned< const pm::MatrixMinor<pm::RowChain<pm::Matrix<double> const&, pm::Matrix<double> const&> const&, pm::all_selector const&, pm::Array<int, void> const&> >);
   FunctionInstance4perl(rank_X, perl::Canned< const pm::MatrixMinor<pm::Matrix<Rational> const&, pm::Set<int, pm::operations::cmp> const&, pm::Array<int, void> const&> >);
   FunctionInstance4perl(rank_X, perl::Canned< const pm::MatrixMinor<pm::RowChain<pm::Matrix<Rational> const&, pm::Matrix<Rational> const&> const&, pm::all_selector const&, pm::Series<int, true> const&> >);
   FunctionInstance4perl(rank_X, perl::Canned< const pm::MatrixMinor<pm::RowChain<pm::Matrix<double> const&, pm::Matrix<double> const&> const&, pm::all_selector const&, pm::Series<int, true> const&> >);
   FunctionInstance4perl(rank_X, perl::Canned< const pm::MatrixMinor<pm::Matrix<Rational> const&, pm::Set<int, pm::operations::cmp> const&, pm::Series<int, true> const&> >);
   FunctionInstance4perl(rank_X, perl::Canned< const pm::MatrixMinor<pm::Matrix<Rational> const&, pm::all_selector const&, pm::Series<int, true> const&> >);
   FunctionInstance4perl(rank_X, perl::Canned< const pm::MatrixMinor<pm::SparseMatrix<pm::Rational, pm::NonSymmetric> const&, pm::all_selector const&, pm::Series<int, true> const&> >);
   FunctionInstance4perl(rank_X, perl::Canned< const pm::MatrixMinor<pm::Matrix<pm::Rational> const&, pm::Array<int, void> const&, pm::all_selector const&> >);
   FunctionInstance4perl(rank_X, perl::Canned< const pm::RowChain<pm::Matrix<pm::Rational> const&, pm::Matrix<pm::Rational> const&> >);
   FunctionInstance4perl(rank_X, perl::Canned< const pm::MatrixMinor<pm::RowChain<pm::SparseMatrix<pm::Rational, pm::NonSymmetric> const&, pm::Matrix<pm::Rational> const&> const&, pm::all_selector const&, pm::Series<int, true> const&> >);
   FunctionInstance4perl(rank_X, perl::Canned< const SparseMatrix< Rational, NonSymmetric > >);
///==== Automatically generated contents end here.  Please do not delete this line. ====
} }
