div#

swordfish.function.div()#

Return element-by-element division of X by Y.

When X or Y is floating, it returns a floating value.

When both X and Y are integers, div means integer division, which is the same as applying the floor function after division.

Parameters:
  • X (Constant) – A scalar/pair/vector/matrix. If X or Y is a pair/vector/matrix, the other is a scalar or a pair/vector/matrix of the same size.

  • Y (Constant) – A scalar/pair/vector/matrix. If X or Y is a pair/vector/matrix, the other is a scalar or a pair/vector/matrix of the same size.