Question: hermitian matrix

The process I am trying to do is create a new expanded Hermitian Matrix using one previosuly defined and then specifying the remaining elements of the upper triangle. This method works but wondering if the third line commands can be simplified into the one Matirx() command in the second line?

> HA := Matrix(2, {(1, 1) = 0, (1, 2) = f, (2, 2) = 0}, shape = hermitian);
> HAA := Matrix(4, HA, shape = hermitian);
> HAA(1, 3) := -t; HAA(2, 4) := -t; HAA(3, 4) := f;

Any help would be greatly appreciated,

Paul

Please Wait...