[kepler-users] Matrix class for float types?
Christopher Brooks
cxh at eecs.berkeley.edu
Mon Jan 18 12:29:18 PST 2010
Hi Matt,
Float was added fairly recently (after the *Matrix classes), but
we have not yet created a FloatMatrix token.
If you would like to add a FloatMatrix class and test file,
then I'd fold those changes in.
To do this, you would need to create ptolemy/data/FloatMatrixToken.java
and ptolemy/data/test/FloatMatrixToken.tcl
You could use the DoubleMatrixToken classes as initial sources.
You would probably also have to update ptolemy/data/type/MatrixType.java
What I would do is search the ptII tree for DoubleMatrixToken and
adjust accordingly
To run the Tcl tests, it is easiest to build Ptolemy and run
the ptjacl script
cd $PTII
./configure
make
$PTII/bin/ptjacl ptolemy/data/test/FloatMatrix.tcl
If you write code for submission, please be sure to follow
the Ptolemy II coding style guide at
http://ptolemy.eecs.berkeley.edu/ptolemyII/ptIIlatest/ptII/doc/coding/style.htm
_Christopher
On 1/18/10 7:09 AM, Matt Luck wrote:
> Is there a reason that there is a Float type class but not a
> FloatMatrix? It seems that this would be easy to implement.
>
> Matt
>
>
>
> _______________________________________________
> Kepler-users mailing list
> Kepler-users at kepler-project.org
> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users
--
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 fax:510.642.2718 (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 cell: 707.332.0670
More information about the Kepler-users
mailing list