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
Is it possible to generate an error when it is tried to multiply matrix with different dimensions? [message #85386] Tue, 30 July 2013 03:15 Go to previous message
Victor[2] is currently offline  Victor[2]
Messages: 5
Registered: July 2013
Junior Member
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
[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: Sat Oct 11 14:53:35 PDT 2025

Total time taken to generate the page: 0.24106 seconds