def bisplev(x,y,tck,dx=<NUM_LIT:0>,dy=<NUM_LIT:0>):
tx,ty,c,kx,ky = tck<EOL>if not (<NUM_LIT:0> <= dx < kx):<EOL><INDENT>raise ValueError("<STR_LIT>" % (dx,kx))<EOL><DEDENT>if not (<NUM_LIT:0> <= dy < ky):<EOL><INDENT>raise ValueError("<STR_LIT>" % (dy,ky))<EOL><DEDENT>x,y = map(myasarray,[x,y])<EOL>if (len(x.shape) != <NUM_LIT:1>) or (len(y.shape) != <NUM_LIT:1>):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>z,ier = _fitpack._bispev(tx,ty,c,kx,ky,x,y,dx,dy)<EOL>if ier == <NUM_LIT:10>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if ier:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>z.shape = len(x),len(y)<EOL>if len(z) > <NUM_LIT:1>:<EOL><INDENT>return z<EOL><DEDENT>if len(z[<NUM_LIT:0>]) > <NUM_LIT:1>:<EOL><INDENT>return z[<NUM_LIT:0>]<EOL><DEDENT>return z[<NUM_LIT:0>][<NUM_LIT:0>]<EOL>
Evaluate a bivariate B-spline and its derivatives.

Return a rank-2 array of spline function values (or spline derivative
values) at points given by the cross-product of the rank-1 arrays `x` and
`y`.  In special cases, return an array or just a float if either `x` or
`y` or both are floats.  Based on BISPEV from FITPACK.

Parameters
----------
x, y : ndarray
    Rank-1 arrays specifying the domain over which to evaluate the
    spline or its derivative.
tck : tuple
    A sequence of length 5 returned by `bisplrep` containing the knot
    locations, the coefficients, and the degree of the spline:
    [tx, ty, c, kx, ky].
dx, dy : int, optional
    The orders of the partial derivatives in `x` and `y` respectively.

Returns
-------
vals : ndarray
    The B-spline or its derivative evaluated over the set formed by
    the cross-product of `x` and `y`.

See Also
--------
splprep, splrep, splint, sproot, splev
UnivariateSpline, BivariateSpline

Notes
-----
    See `bisplrep` to generate the `tck` representation.

References
----------
.. [1] Dierckx P. : An algorithm for surface fitting
   with spline functions
   Ima J. Numer. Anal. 1 (1981) 267-283.
.. [2] Dierckx P. : An algorithm for surface fitting
   with spline functions
   report tw50, Dept. Computer Science,K.U.Leuven, 1980.
.. [3] Dierckx P. : Curve and surface fitting with splines,
   Monographs on Numerical Analysis, Oxford University Press, 1993.