"""
getmatrix.py --


Dynamic core.

Date of creation: 2010-15-11

Copyright
Julian David Colorado, jd.colorado@upm.es
Universidad Politecnica de Madrid

See the file "license.terms" for information on usage and redistribution of this file, and for a
DISCLAIMER OF ALL WARRANTIES.

"""

from numpy import *
def getmatrix(A,file):
	"""
	Gets numpy A matrix from file with meschach style
	"""
	n=len(A)
	m=size(A)/n
	f=open(file,'r+')
	lines=f.readlines()



	for i in range(n):
		line=lines[i].split(' ')
		for j in range(m):
			A[i,j]=float(line[j])

	f.close()
