comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Is it possible to generate an error when it is tried to multiply matrix with different dimensions?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Is it possible to generate an error when it is tried to multiply matrix with different dimensions? [message #85400 is a reply to message #85386] Tue, 30 July 2013 09:26 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 7/30/13 4:15 AM, victor wrote:
> Hi everyone!
>
> I want to know if it is possible to generate an error (or warnning)
> in IDL (using for instance de COMPILE_OPT or something like that)
> when it is tried to multiply matrix with different dimensions.
>
> for instance..
>
> a = [1,2,3] b = [1,2]
>
> The dimensions are different and if I do print,a*b the result is
> [1,4] but in fact I want to know that the matrix are different.
>
> It is a common error when I use a lot of matrix and could be good to
> know when this it happens (at least some warning...) thanks!!
>
> kind regards,
>
> VĂ­ctor
>

Not that I know of.

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: image(/buffer) & colorbar result in seg fault
Next Topic: Re: Asynchronous IDL_IDLBridge causing memory leak

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 06:07:01 PDT 2025

Total time taken to generate the page: 1.44268 seconds