PandA-2024.02
symmetry.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 # Changes a file in MatrixMarket "symmetric" format into one in "general" format
4 # This makes it easier to parse without changing the input.
5 
6 import sys
7 
8 for line in sys.stdin.readlines()[2:]:
9  (row,col,value) = line.strip().split()
10  if row==col:
11  print row,col,value
12  else:
13  print row,col,value
14  print col,row,value

Generated on Mon Feb 12 2024 13:02:50 for PandA-2024.02 by doxygen 1.8.13