<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Muhannad,<br>
Ah, that explains it. The problem was not not finding the actor but
not finding the documentation for matrices and arrays.<br>
<br>
In Kepler, if you double click on the Multiply or Divide actor, then
the Edit Parameters window has a Help button that bring up the
documentation for the Ptolemy II Expression language.<br>
<br>
The Expression Language is documented in the Ptolemy II Design
Document, See<br>
<a class="moz-txt-link-freetext" href="http://ptolemy.berkeley.edu/ptolemyII/designdoc.htm">http://ptolemy.berkeley.edu/ptolemyII/designdoc.htm</a><br>
<br>
See also<br>
<a class="moz-txt-link-freetext" href="http://ptolemy.berkeley.edu/ptolemyII/ptIIlatest/ptII/doc/expressions.pdf">http://ptolemy.berkeley.edu/ptolemyII/ptIIlatest/ptII/doc/expressions.pdf</a><br>
for the 2010 version.<br>
<br>
The idea of adding documentation about the expression language to
the actors is an interesting one. It is hard to know where to stop
though, since the expression language can be used in any Parameter.
Another issue is that it is hard to know where to say that the
documentation resides because an actor can be used inside Ptolemy II
or Vergil or outside of a GUI.<br>
<br>
What I did do was add documentation to the Ptolemy II Const actor
and the Kepler Constant.xml file.<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<cite><br>
<br>
</cite><p>The Ptolemy II Expression language defines the
syntax<br>
for the <i>value</i> parameter. In Kepler,
documentation is available<br>
via the Help button in the Edit Parameters window. Documentation<br>
is also available on-line at<br>
<a
href=<a class="moz-txt-link-rfc2396E" href="http://http://ptolemy.berkeley.edu/ptolemyII/designdoc.htm#in_browser">"http://http://ptolemy.berkeley.edu/ptolemyII/designdoc.htm#in_browser"</a>><a class="moz-txt-link-freetext" href="http://ptolemy.berkeley.edu/ptolemyII/designdoc.htm">http://ptolemy.berkeley.edu/ptolemyII/designdoc.htm</a></a>.</p><br>
<br>
The reason I chose the Const actor is because the MultiplyDivide
actor has no parameters and because Const is a fairly basic actor
that is among the first actors new users will try.<br>
<br>
_Christopher<br>
<br>
On 1/21/12 9:43 AM, Ali, Muhannad wrote:
<blockquote
cite="mid:BF5589B7-3C68-4FF2-A6D6-70B7AE21339C@student.kit.edu"
type="cite">Thanks Edwad and Christopher!
<div><br>
</div>
<div>@Christopher: actually I found it but I didn't know in which
syntax I have to provide my Matrix/Vector data. It would be very
helpful if the documentation of MuliplyDivide actor includes the
example provided by Edward.</div>
<div><br>
</div>
<div>Thanks once again!</div>
<div><br>
</div>
<div>Muhannad</div>
<div><br>
<div>
<div>On Jan 21, 2012, at 6:33 PM, Christopher Brooks wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div bgcolor="#FFFFFF" text="#000000"> Muhannad,<br>
The MultiplyDivide actor in Ptolemy does this, see
attached.<br>
<br>
I'm surprised you could not find this actor in Kepler.<br>
<br>
When I entered "Multiply" into "Search Components" and hit
"Search" it came right up.<br>
<br>
_Christopher<br>
<br>
<br>
On 1/21/12 9:27 AM, Edward A. Lee wrote:
<blockquote cite="mid:4F1AF579.4040206@eecs.berkeley.edu"
type="cite"> <br>
Sure, just about anything that does multiplication will
handle matrices. <br>
MultiplyDivide, Expression, FIR, etc. Math operations
are polymorphic. <br>
Matrices are specified in MATLAB syntax in the
expression language. <br>
E.g, in the Expression Evaluator: <br>
<br>
>> [0, 1;1, 0]*[2; 3] <br>
[3;2] <br>
<br>
Edward <br>
<br>
On 1/21/12 5:25 AM, Ali, Muhannad wrote: <br>
<blockquote type="cite">Hello, <br>
<br>
is there any actor that multiplies two arrays? I need
to multiply a 2D array (mXn) with a vector(n). <br>
<br>
Thanks! <br>
<br>
Muhannad <br>
_______________________________________________ <br>
Kepler-users mailing list <br>
<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:Kepler-users@kepler-project.org">Kepler-users@kepler-project.org</a>
<br>
<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users">http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users</a>
<br>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kepler-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Kepler-users@kepler-project.org">Kepler-users@kepler-project.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users">http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Christopher Brooks, PMP University of California
CHESS Executive Director US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust Berkeley, CA 94720-1774
ph: 510.643.9841 (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 cell: 707.332.0670 </pre>
</div>
<span><MultiplyMatrixAndArray.xml></span></blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Christopher Brooks, PMP University of California
CHESS Executive Director US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust Berkeley, CA 94720-1774
ph: 510.643.9841 (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 cell: 707.332.0670 </pre>
</body>
</html>