#!/usr/bin/python -Wall

# ================================================================
# This software is released under the terms of the GNU GPL.
# Please see LICENSE.txt in the same directory as this file.
# Copyright (c) John Kerl 2007
# kerl.john.r@gmail.com
# ================================================================

from __future__ import division # 1/2 = 0.5, not 0.
import sys
from sackmat_m import *

argc = len(sys.argv)
if (argc == 2):
	A = read_matrix(float, sys.argv[1])
	C = -A
	print_matrix(C)
elif (argc == 3):
	A = read_matrix(float, sys.argv[1])
	B = read_matrix(float, sys.argv[2])
	C = A - B
	print_matrix(C)
else:
	print >> sys.stderr, "Usage: %s {file name 1} {file name 2}" % (sys.argv[0])
	sys.exit(1)
