1 // Copyright (c) 1997-2006 John Abbott 2 3 // This file is part of the source of CoCoALib, the CoCoA Library. 4 5 // CoCoALib is free software: you can redistribute it and/or modify 6 // it under the terms of the GNU General Public License as published by 7 // the Free Software Foundation, either version 3 of the License, or 8 // (at your option) any later version. 9 10 // CoCoALib is distributed in the hope that it will be useful, 11 // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 // GNU General Public License for more details. 14 15 // You should have received a copy of the GNU General Public License 16 // along with CoCoALib. If not, see <http://www.gnu.org/licenses/>. 17 18 #ifndef Zmat_h 19 #define Zmat_h 20 21 #include "Zmat_type.h" 22 #include "FFmat_type.h" 23 24 Zmat Zmat_ctor(int n, int m); 25 void Zmat_dtor(Zmat M); 26 27 void Zmat_swap_rows(Zmat M, int i, int j); 28 void Zmat_swap_cols(Zmat M, int i, int j); 29 30 void Zmat_to_FFmat(FFmat Mp, Zmat M); 31 32 void Zmat_mul(Zmat product, Zmat A, Zmat B); 33 void Zmat_mul_FFmat(Zmat product, Zmat A, FFmat B); 34 35 #endif 36