#NEWLINE# def __call__( self , * args ) : #NEWLINE# #INDENT# '\n        Evaluate the BSpline at a given point, yielding\n        a matrix B and return\n\n        B * self.coef\n\n\n        INPUTS:\n           args -- optional arguments. If None, it returns self._basisx,\n                   the BSpline evaluated at the x values passed in __init__.\n                   Otherwise, return the BSpline evaluated at the\n                   first argument args[0].\n\n        OUTPUTS: y\n           y    -- value of Bspline at specified x values\n\n        BUGS:\n           If self has no attribute x, an exception will be raised\n           because self has no attribute _basisx.\n\n        ' #NEWLINE# if ( not args ) : #NEWLINE# #INDENT# b = self . _basisx . T #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# x = args [ 0 ] #NEWLINE# b = np . asarray ( self . basis ( x ) ) . T #NEWLINE# #UNINDENT# return np . squeeze ( np . dot ( b , self . coef ) )