1 /* 2 * Copyright © 2004 Ondra Kamenik 3 * Copyright © 2019 Dynare Team 4 * 5 * This file is part of Dynare. 6 * 7 * Dynare is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * Dynare is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with Dynare. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 21 // Tensor library static data. 22 23 /* The purpose of this file is to make a unique static variable which 24 would contain all other static variables and be responsible for their 25 correct initialization and destruction. The variables include an 26 equivalence bundle and a permutation bundle. Both depend on dimension of the 27 problem, and maximum number of variables. 28 29 TLStatic::init() must be called at the beginning of the program, as 30 soon as dimension and number of variables is known. */ 31 32 #ifndef TL_STATIC_H 33 #define TL_STATIC_H 34 35 #include "equivalence.hh" 36 #include "permutation.hh" 37 38 namespace TLStatic 39 { 40 const EquivalenceSet &getEquiv(int n); 41 const PermutationSet &getPerm(int n); 42 void init(int dim, int nvar); 43 }; 44 45 #endif 46