feval - Multiple evaluation
Syntax
[z]=feval(x,y,f) [z]=feval(x,f)
Arguments
- x,y
two vectors
- f
a function or a character string (for Fortran or C call)
Description
Multiple evaluation of a function for one or two arguments of vector type :
- z=feval(x,f)
returns the vector
zdefined byz(i)=f(x(i))- z=feval(x,y,f)
returns the matrix
zsuch asz(i,j)=f(x(i),y(j))
f is an external
(function or routine) accepting on one or two arguments which are supposed to be real. The
result returned by f can be real or complex. In case of a Fortran call,
the function f must be defined in the subroutine
fevaltable.c (in directory
SCI/modules/differential_equations/src/c).