The function generates the matrix
If specifying the second input (i.e., ), where must be a square and symmetric matrix, the function yields the matrix
Finally, if also specifying the third input (i.e., ), with the nonnegative integers and , the function yields the matrix