"This module copes with the differences between old Numeric and numpy."
try:
from Numeric import array,Float,Int,matrixmultiply,transpose,zeros
from LinearAlgebra import solve_linear_equations,LinAlgError,inverse
except ImportError:
from numpy import array,transpose,zeros
from numpy.oldnumeric import matrixmultiply,Float,Int
from numpy.linalg import solve
inv as inverse
|