[Numpy-discussion] Construct a large n-dimensional complex matrix

Nathan Faggian nfaggian@unimelb.edu...
Mon Apr 6 20:53:16 CDT 2009


HI,

I want to construct a large complex matrix, I have the real and  
imaginary components as double vectors, is there a fast way to  
construct a complex vector in numpy?

Cheers,

Nathan.

----------------------------------------------------------------------------

Nathan Faggian,  Ph.D.

The Centre for Neuroscience / Howard Florey Institute
The University of Melbourne

Phone	:  +61 3 8344 1836
Email	;  nfaggian@unimelb.edu.au

----------------------------------------------------------------------------

On 05/04/2009, at 2:18 PM, David Cournapeau wrote:

> On Sun, Apr 5, 2009 at 11:17 AM, Pierre GM <pgmdevlist@gmail.com>  
> wrote:
>> All,
>> I'm trying to build a relatively complicated symmetric matrix. I can
>> build the upper-right block without pb. What is the fastest way to  
>> get
>> the LL corner from the UR one ?
>> Thanks a lot in advance for any idea.
>
> I may be missing something, but why not building it from scratch + a
> couple of elementary operations ? Is it too slow ? For example:
>
> # Assuming the lower part of a is zero before the operation
> a + a.T - np.diag(a.diagonal())
>
> David
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20090407/5d1eada3/attachment.html 


More information about the Numpy-discussion mailing list