BSXFUN

From Jacket Wiki

Jump to: navigation, search
Back to Function List

Apply element-by-element binary operation to two arrays with singleton expansion enabled. ([http://forums.accelereyes.com/forums/viewtopic.php?f=7&t=1355&p=3970#p3970 explanation)

Usage

Jacket for M Language
    Supported Syntax
    
C = bsxfun(fun,A,B)
    

GFOR Supported

Yes

GCOMPILE Supported

Yes

Types Supported

-  GDOUBLE   GSINGLE 

Types Not Supported

-  GLOGICAL   GINT32   INT8   GUINT32   GUINT8   COMPLEX 

CPU usageJacket only contains GPU computing functions. To run functions on the CPU, try one of the MathWorks products:
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/bsxfun.html

Notes

  • Jacket currently supports the following built-in functions:
    • @plus - Plus
    • @minus - Minus
    • @times - Array multiply
    • @rdivide - Right array divide
    • @ldivide - Left array divide
    • @power - Array power
    • @max - Binary maximum
    • @min - Binary minimum
    • @rem - Remainder after division
    • @mod - Modulus after division
    • @atan2 - Four-quadrant inverse tangent
    • @hypot - Square root of sum of squares
    • @eq - Equal
    • @ne - Not equal
    • @lt - Less than
    • @le - Less than or equal
    • @gt - Greater than
    • @ge - Greater than or equal
    • @and - Element-wise logical AND
    • @or - Element-wise logical OR
    • @xor - Logical EXCLUSIVE OR

See Also

REPMAT, ARRAYFUN

Personal tools