difference#

swordfish.function.difference()#

Return the last element minus the first element of a vector. If X is a scalar, it returns 0.

参数:

X (Constant) -- A scalar/vector.