예제 #1
0
void print_vector(const Order &o, unsigned int x) {

  for (int s=0; s<o.Nspin(); s++) {
    for (int c=0; c<o.Ncolor(); c++) {
      for (int z=0; z<2; z++) {
	std::cout << o(x, s, c, z) << std::endl;
      }
    }
    std::cout << std::endl;
  }

}
예제 #2
0
  void print_vector(const Order &o, unsigned int x) {

    for (int s=0; s<o.Nspin(); s++) {
      std::cout << "x = " << x << ", s = " << s << ", { ";
      for (int c=0; c<o.Ncolor(); c++) {
	std::cout << " ( " << o(x, s, c, 0) << " , " ;
	if (c<o.Ncolor()-1) std::cout << o(x, s, c, 1) << " ) ," ;
	else std::cout << o(x, s, c, 1) << " ) " ;
      }
      std::cout << " } " << std::endl;
    }

  }