1. Constant diagonal values Here, the constant value is suppled by selecting and setting the "Constant" selections. The size of the matrix is controlled by selecting and setting the Rows and Columns as desired. If the matrix is not square, the diagonal will be carried as far as possible before hitting the boundary of the matrix. The matrix data type is controlled by the setting of the output data type list selector. If a complex data type is selected but the constant is underspecified (meaning that either the real or imaginary part was not specified) then the unspecified part is assumed to be zero. If a complex value is specified, but a real data type is selected for output, then the imaginary part is ignored.
This will generate a matrix with a single plane of data, i.e. DxTxE=1.
2. Non-constant diagonal values Here, the diagonal values are read from the given vector of values. If the matrix size is not specified explicitly, then it is set to a square matrix with dimensions equal to the length of the data vector. If the matrix size is explicitly specified, then the vector element values are inserted into the diagonal matrix until either the matrix boundary is hit or there are no more values in the vector (in this case the remaining diagonal values will be zero). If the vector is complex but the output type is real then the imaginary part is ignored. If the vector is real but the output type is complex, then the imaginary part will be assumed to be zero.
If the vector has DxTxE>1, then the output matrix will have the same dimensions along the D,T, and E axes as the vector, with the diagonal values in each plane taking on the values present in the corresponding WxH plane in the vector.
In all cases, the output data type is ultimately controlled by the Output Data Type selector list setting, and the matrix size by the Row and Column selections if set.
Mutually Inclusive Group; if desired, specify ALL of:
AND