Post Reply 
Optional Mapping Argument to matrix() Function?
03-17-2017, 10:48 AM
Post: #1
Optional Mapping Argument to matrix() Function?
The latest User Guide describes the matrix(r,c) function as having an optional third argument that is either a value or a mapping of (j,k). The example shows how to use it with a constant but not with a mapping. It is not in the catalog of functions so there is no further help or examples. How do define a mapping of (j,k) for this argument?
Thanks!
Find all posts by this user
Quote this message in a reply
03-17-2017, 12:41 PM
Post: #2
RE: Optional Mapping Argument to matrix() Function?
Some examples:
PHP Code:
matrix(3,5,(j,k)->1+j+2*k)
matrix(5,5,(j,k)->ifte(j>k,0,rand(1000))) 
Find all posts by this user
Quote this message in a reply
03-19-2017, 07:00 AM
Post: #3
RE: Optional Mapping Argument to matrix() Function?
Thanks so much!
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)