turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

05-24-2016 02:31 PM

a=-w****2**;

a=x`[**1**,**2**];

Accepted Solutions

Solution

05-24-2016
03:00 PM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

05-24-2016 02:43 PM

The first statement is equivalent to

a = -w*w;

which is matrix multiplication.

The second statement is equivalent to

a = x[2,1];

because transpose means flip the matrix across the main diagonal.

It sounds like you have some very basic questions about the SAS/IML language. You might want to look at these resources to help you get started with the language: "Ten tips for learning the SAS/IML language."

All Replies

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

05-24-2016 02:33 PM

IML Operators

http://support.sas.com/rnd/app/iml/matrix.html

Base SAS operators

http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000780367.htm

** is Exponentiation

` is transpose for a matrix

Solution

05-24-2016
03:00 PM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

05-24-2016 02:43 PM

The first statement is equivalent to

a = -w*w;

which is matrix multiplication.

The second statement is equivalent to

a = x[2,1];

because transpose means flip the matrix across the main diagonal.

It sounds like you have some very basic questions about the SAS/IML language. You might want to look at these resources to help you get started with the language: "Ten tips for learning the SAS/IML language."