On Wed, 27 Jan 2021, Riccardo (Jack) Lucchetti wrote:
 On Wed, 27 Jan 2021, Riccardo (Jack) Lucchetti wrote:
> On Tue, 26 Jan 2021, Allin Cottrell wrote:
> 
>> I've had a go at it -- see what you think. Also please check if the 
>> complex case is right.
> 
> Thanks Allin, I'll give it a go.
 OK, I just pushed a one-line change to git so as to have hdprod() behave 
 sensibly in the complex case with the shorthand syntax hdprod(A).
 example script: [...]
 Brief comment on the above: in the real case, each row of the matrix returned 
 by hdprod(X) can be thought of as the vectorisation of a symmetric matrix, 
 given by the outer product of the corresponding row of (X). The "shorthand" 
 syntax allows you to store only the vech of that matrix, thus saving space.
 With the change I just pushed to git, this property is preserved in the 
 complex case, where the "outer product" is, in most cases, the product of x 
 by its _conjugate_ transpose.
 With this modification, there is the potential for a very nice efficiency 
 gain in the ghosts package, when computing the raw periodogram from the FFT.
 If we all agree on this modification, I'll take care of updating the docs. 
Looks good to me! Thanks.
Allin