Polymetic  1.1
A c++ library for polynomial and matrix arithmetic, focused on applications in Kinematics.
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
gmp_integer_vector.cpp
Go to the documentation of this file.
1 // Copyright 2018 Dhruvesh Nikhilkumar Patel
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 //
15 #include <gmpxx.h>
16 #include <iostream>
17 #include <vector>
18 
19 int main()
20 {
21  std::vector<std::vector<mpz_class>> Integers {{1,2},{34,45}};
22 // Integers.push_back(1);
23 // Integers.push_back(2);
24 // Integers.push_back(34);
25 // Integers.push_back(45);
26  std::cout<<"Integers = (";
27  size_t i =0;
28  for (;i<2;i++) {
29  std::cout<< "(";
30  for(size_t j=0;j<2;j++) {
31  std::cout<<Integers[i][j]<<",";
32  }
33  std::cout<<")";
34  }
35  std::cout<<")"<<std::endl;
36  return 0;
37 }
int main()