11.01.2013 Views

NX Nastran DMAP Programmer's Guide - Kxcad.net

NX Nastran DMAP Programmer's Guide - Kxcad.net

NX Nastran DMAP Programmer's Guide - Kxcad.net

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ADD Matrix add<br />

Computes [ X]<br />

= α[ A]<br />

⊕ β[ B]<br />

where α and β are scalar multipliers<br />

( ⊕ can be the +, *, ÷ or overwrite operators)<br />

.<br />

Format:<br />

ADD A,B/X/ALPHA/BETA/IOPT $<br />

Input Data Blocks:<br />

A Any matrix (real or complex).<br />

B Any matrix (real or complex).<br />

Output Data Block:<br />

X Matrix.<br />

Parameters:<br />

Remarks:<br />

1. [A] and/or [B] may be purged, in which case the corresponding term in the<br />

matrix sum will be assumed null. The input data blocks must be unique.<br />

ADD<br />

Matrix add<br />

ALPHA Input-complex single precision-default = (1.0,0.0). This is α, the scalar<br />

multiplier for [A].<br />

BETA Input-complex single precision-default = (1.0,0.0). This is β, the scalar<br />

multiplier for [B].<br />

IOPT Input-integer-default = 0. This chooses the operator<br />

IOPT Operation<br />

0<br />

1<br />

2<br />

3<br />

+ , add<br />

* , multiply<br />

÷<br />

x ij<br />

, divide<br />

⎧<br />

⎨<br />

⎩<br />

=<br />

=<br />

⎫<br />

⎬<br />

⎭<br />

αAij if Bij = 0<br />

βBij if Bij ≠ 0<br />

if Aij or Bij = 0, then Xij = 0<br />

in xij = αAij ⊕ βBij 2. The type (complex or real and single or double precision) of [X] is the maximum<br />

of the types of [A], [B], α, and β. The size of [X] is the size of [A] if [A] is present.<br />

Otherwise, it is the size of [B].<br />

⊕<br />

773

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!