CoCoALib-0.9905 date: 23 May 2007


DenseMatrix.H

Go to the documentation of this file.
00001 #ifndef CoCoA_DenseMatrix_H
00002 #define CoCoA_DenseMatrix_H
00003 
00004 //   Copyright (c)  2005  John Abbott
00005 
00006 //   This file is part of the source of CoCoALib, the CoCoA Library.
00007 
00008 //   CoCoALib is free software; you can redistribute it and/or modify
00009 //   it under the terms of the GNU General Public License (version 2)
00010 //   as published by the Free Software Foundation.  A copy of the full
00011 //   licence may be found in the file COPYING in this directory.
00012 
00013 //   CoCoALib is distributed in the hope that it will be useful,
00014 //   but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 //   GNU General Public License for more details.
00017 
00018 //   You should have received a copy of the GNU General Public License
00019 //   along with CoCoA; if not, write to the Free Software
00020 //   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021 
00022 
00023 #include <cstddef>
00024 //using std::size_t;
00025 #include <vector>
00026 //using std::vector;
00027 
00028 
00029 namespace CoCoA
00030 {
00031 
00032   class ConstMatrix;  // forward declaration -- defined in matrix.H
00033   class matrix;       // forward declaration -- defined in matrix.H
00034   class ring;         // forward declaration -- defined in ring.H
00035 
00036   /*-----------------------------------------------------------------*/
00037   /** \include DenseMatrix.txt  */
00038   /*-----------------------------------------------------------------*/
00039 
00040   matrix NewDenseMatrix(const ring& R, std::size_t NumRows, std::size_t NumCols);
00041   matrix NewDenseMatrix(const ring& R, std::size_t NumRows, std::size_t NumCols, const std::vector< std::vector<int> >& M);
00042   matrix NewDenseMatrix(ConstMatrix M);
00043   void inverse(matrix& lhs, ConstMatrix M);
00044   void adjoint(matrix& lhs, ConstMatrix M);
00045 //????  RingElem det(const DenseMatrix& M);
00046   void mul(matrix& lhs, ConstMatrix M1, ConstMatrix M2);
00047 
00048 } // end of namespace CoCoA
00049 
00050 #endif

Generated on Wed May 23 13:43:34 2007 for CoCoALib by  doxygen 1.4.6