[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How do I set values in a ComplexColumn vector in a DLL.

From: Bergman, Paul - AES
Subject: RE: How do I set values in a ComplexColumn vector in a DLL.
Date: Fri, 19 Jul 2002 08:46:38 -0500


> ComplexColumnVector ccv;
> ccv(1,1) = Complex(1.0,1.0);

Was a typo in my e-mail. I did try 

  ccv(1) = Complex(1.0,1.0);

And got " '0' cannot be used as a function. "

It turns out some header file I included had a "#define Complex 0".  (Doooh!

I did a #undef Complex in my file and everything worked

Thanks for the sanity check!

Paul Bergman.  address@hidden

-----Original Message-----
From: Andy Adler [mailto:address@hidden
Sent: Thursday, July 18, 2002 9:56 PM
To: Bergman, Paul - AES
Cc: 'address@hidden'
Subject: Re: How do I set values in a ComplexColumn vector in a DLL.

On Thu, 18 Jul 2002, Bergman, Paul - AES wrote:
> ComplexColumnVector ccv;
> ccv(1,1) = Complex(1.0,1.0);
> But got an error that said something like "can not use '0' as a function"
> when I tried to compile.

A vector takes one index.

ccv(1) = Complex(1,1);


ComplexMatrix m;
m(1,1) = Complex(1,1);

Andy Adler,                address@hidden

If this email is not intended for you, or you are not responsible for the
delivery of this message to the addressee, please note that this message may
contain ITT Privileged/Proprietary Information.  In such a case, you may not
copy or deliver this message to anyone.  You should destroy this message and
kindly notify the sender by reply email.  Information contained in this
message that does not relate to the business of ITT is neither endorsed by
nor attributable to ITT. 

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]