Regarding Standalone Program
Raghavendra K
raghavendra83 at gmail.com
Wed Aug 6 06:00:33 CDT 2008
Hi,
Superrr. It worked for me.
I guess it is high time I started getting used to the codes written in C++
;)
Thanks a lot for your time.
On Wed, Aug 6, 2008 at 4:14 PM, Jaroslav Hajek <highegg at gmail.com> wrote:
> On Wed, Aug 6, 2008 at 12:29 PM, Raghavendra K <raghavendra83 at gmail.com>
> wrote:
> > Hi Jaroslav,
> > The expm function is working fine for me. I have also linked up that
> with
> > MPI and am able to run my application on 10 processors simultaneously,
> each
> > processor invoking its native octave.
> > I have problem with the xpow function.
> > Matrix B = xpow(A, 100);
> > where A is also of type Matrix gives me an error while compilation.
> >
> > error: no match for 'operator=' in 'B = xpow(const Matrix &,
> > double)(1.0e+2)'
> >
> > where each element of the matrix A is initialized with the value 1.1
> >
> > How do I fix it?
> >
>
> The xpow functions return an octave_value object, which is a general
> container able to hold any Octave type. (The reason for this choice is
> basically that A^b can be complex even if A and b are both rea)l.
> Thus, you need to do:
>
> Matrix B = xpow (A, 100).matrix_value ();
>
> cheers
>
> --
> RNDr. Jaroslav Hajek
> computing expert
> Aeronautical Research and Test Institute (VZLU)
> Prague, Czech Republic
> url: www.highegg.matfyz.cz
>
--
Regards,
Raghavendra K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.cae.wisc.edu/pipermail/help-octave/attachments/20080806/b8639a66/attachment.html
More information about the Help-octave
mailing list