14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix A JSL Syntax Reference 631<br />

Matrix Functions<br />

Distance(x1, x2, , )<br />

Description<br />

Produces a matrix of distances between rows of x1 and rows of x2.<br />

Returns<br />

A matrix.<br />

Arguments<br />

x1, x2 Two matrices.<br />

scales Optional argument to customize the scaling of the matrix.<br />

powers Optional argument to customize the powers of the matrix.<br />

E Div(A, B)<br />

A/B<br />

Description<br />

Element-by-element division of two matrices.<br />

Returns<br />

The resulting matrix.<br />

Arguments<br />

A, B Two matrices.<br />

E Mult(A, B)<br />

A*B<br />

Description<br />

Element-by-element multiplication of two matrices.<br />

Returns<br />

The resulting matrix.<br />

Arguments<br />

A, B Two matrices.<br />

Eigen(A)<br />

Description<br />

Eigenvalue decomposition.<br />

Returns<br />

A list {M, E} such that E * Diag(M) * E = A'.<br />

Argument<br />

A A symmetric matrix.<br />

G Inverse(A)<br />

Description<br />

Generalized (Moore-Penrose) matrix inverse.

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

Saved successfully!

Ooh no, something went wrong!