Instructions

PictureFLAME animates FLAME routines, showing how operands (vectors and/or matrices) are repartitioned and updated step by step.

Creating a routine

Routines are usually generated with Spark and then completed by hand.

Loading a program

Paste or type a FLAME routine (MATLAB/Octave or Python) in the left panel. Select the language from the dropdown, then click Load. PictureFLAME parses the routine and creates operand grids from the function signature: a single uppercase letter becomes a matrix, a single lowercase letter a column vector, a two-character name ending in t a row vector, and anything else a scalar.

Setting operand values

Each operand has a text box below its grid. Edit the values (space-separated numbers, one row per line) and click Apply to load them into the grid. Changing the number of rows or columns in the text box and applying will resize the operand.

Linked sizes

If a Verification formula is provided, resizing one operand automatically resizes all conformally linked operands. For example, with formula A * x + y, changing A to 4×5 will make x 5×1 and y 4×1. Without a formula, only the operand you explicitly resize changes.

Animating

Verification formula

Type a matrix expression (e.g. A * x + y) in the Verification formula box. When the animation completes, PictureFLAME evaluates the formula with the initial values and checks whether the output operand matches. Supported operations: +, -, * (scalar or matrix multiply), and transpose written as x'.

Manipulating the window

Zoom in/out with Command + / Command −. Drag the center divider to resize the two panels.

Tips

Acknowledgments

PictureFLAME was created by Robert van de Geijn (UT Austin) and Tze Meng Low (Carnegie Mellon University).

The latest rewrite of PictureFLAME was supported in part by the National Science Foundation (NSF) and the U.S. Department of Energy (DOE), Office of Science, Office of Advanced Scientific Computing Research, under the following awards:

Any opinions, findings, conclusions, or recommendations expressed here are those of the authors and do not necessarily reflect the views of the NSF or DOE.

Beta version of new PictureFLAME webpage. Click here for old page.

If you experience strange rendering of this page, do a hard reload: Chrome/Firefox/Edge: Cmd+Shift+R   Safari: Cmd+Option+R

Input Program


Operands


Load a program to begin.
Verification formula