Package mmLib :: Module NumericCompat
[hide private]
[frames] | no frames]

Source Code for Module mmLib.NumericCompat

 1  ## Copyright 2002-2010 by PyMMLib Development Group (see AUTHORS file) 
 2  ## This code is part of the PyMMLib distribution and governed by 
 3  ## its license.  Please see the LICENSE file that should have been 
 4  ## included as part of this package. 
 5  from Numeric import * 
 6  import LinearAlgebra as linalg 
 7   
 8  _typeMap = { 
 9      float: Float, 
10  } 
11   
12  NumericArray = array 
13 -def array(data, dataType):
14 return NumericArray(data, _typeMap[dataType])
15 16 NumericIdentity = identity
17 -def identity(data, dataType):
18 return NumericIdentity(data, _typeMap[dataType])
19