import numpy as np
import math

e = np.array([[1, 2],[3, 4]]) #,dtype = np.float)
print e
g = np.array([[5,6],[7,8]])
print g
print ""
np.save("arraysavetest",g)
e[1,1]
f = np.load("UnknownProbabilityMatrix.npy")
print f

#g = e/e.sum(axis=1)[:,None]

#for row in xrange(e.shape[0]):
#	e[row] /= np.sum(e[row])
#print g

total = 0
for i in range(0,2):
	for j in range(0,2):
		current = math.pow( e[i,j]+g[i,j],2)
		#print current
		total += current
print total



