RATS 10.1
RATS 10.1

Instructions /

OVERLAY Instruction

Home Page

← Previous Next →

OVERLAY  array1(element) WITH array2(dimension(s))

Overlays one array with another starting at the specified address. This isn't used much as most of what you could do with OVERLAY can be done with functions like %XSUBMAT.

Parameters

array1(element)

the array (and starting element of the array) that will be overlaid

array2(dimension(s))

the overlaying array, including the dimensions

Examples

declare vector b(10) c

overlay b(1) with c(5)

 

This makes the vector C equivalent to the first five elements of B. If you change one, you change both.

 

 

*

* Overlay the top corner of %cmom with an NREG x NREG symmetric and the last row

* by an NREG vector

*

overlay  %cmom(1,1)       with xxmixed(%nreg,%nreg)

overlay  %cmom(%nreg+1,1) with xymixed(%nreg)

 

This does exactly what it says in the comments. Again, if you change one, you change both.


 


Copyright © 2025 Thomas A. Doan