Question:
How do I create a constant matrix parameter?
Solution:
In Gedae, constant matrix parameters have a type definition defined as:
 
Start with the menu option Edit->Add Data In the "Add Data" dialog, do the following:
From the top buttons, select "local ", "const", and the appropriate data type.
Enter a name for the data object in the "Name" panel.
In the "Dim" panel, enter the string "*,*". This "creates" the "[][]" in the data definition
Entering the values for a matrix is accomplished in two different ways. The following graph shows both methods and the resulting graphic object on the canvas. Double-click on either matrix data objects sest or test, or the other solutions box, to see more detail on their creation.
 
 
The advantage to "sest" is that it takes
up less canvas real estate and is easier to edit the values. The advantage
to "test" is that you can see the values and dimensions on the
canvas. The first matrix data object sest is defined as seen
in the following "Edit Data" dialog. In the "Dim" panel
is the required *,*
and in the "Value" panel is the keyword "..."
symbolizing that the values are in the "Edit Value" window. This
window is opened by selecting the "Value" button. The description
local const
float is selected.
To enter the values in the matrix, select the "Value"
button. This opens the "Edit Value" dialog, seen below. You enter
the values in the form: {{ #, #, ..., #…},{ #, #, ..., #…}, …}. This is {{row1}, {row2}} form where {row} = { column1,
column2, …} Once the data object has been created and is on the
canvas, double-clicking on it opens the following window. This window lists
the values of the elements of the matrix. The first two columns are the
matrix index, the third is the value. The second matrix data object test is defined as
seen in the following "Edit Data" dialog. In the "Dim"
panel is the required *,*.
This time the values are typed into the "Value" panel in the
form {{ #, #, ..., #…},{ #, #, ..., #…}, …}. This is {{row1}, {row2}} form
where {row} = { column1, column2, …}.
Once the data object has been created and is on the
canvas, double-clicking on it opens the following window. This window lists
the values of the elements of the matrix. The first two columns are the
matrix index, the third is the value.
Other solutions: Type in the "Data Declaration" panel: local const "datatype" data[][] = {{
row 1 values},{row2 values},...} Press the <return> key. The data object, which
will look like "test" above, will be put on the canvas.





There is another less intuitive method for directly creating a matrix paramter.
Open the Edit->Add Data dialog.
Select the "Value" button and enter in the values using the method described above.
After all the values have been added, type in the "Data Declaration" panel:
local const "datatype" data[][] = ...
Press the <return> key. The data object, which will look like "sest" above, will be put on the canvas.