ST code wanted (performance investigation) 
Author Message
 ST code wanted (performance investigation)

Hi folks (one more time)!

I am currently working on a thesis about the impact of
programing style on performance (at the University of Technology,
Vienna, Austria, Europe). For that purpose, I need a somewhat larger
sample of functionally equivalent programs (ie classes and methods
in our idiom).

If you have already written something like a matrix class, or if you
don`t mind writing some code just for fun (and probably for your own
use), read the following specification and send a mail containing your

Note & Guarantee: Your program will not be used for any other purpose than
the publication mentioned above.

The Specification:
A program is required which reads two square matrices of integer numbers
from an input file and writes their product to an output file. (Both
files are text files) The size of the matrices is *NOT* known in advance.

(Skip this if you already know how to multiply matrices:)
For two matrices A and B, the elements cij of their product C are
calculated as follows (For matrix A, aij denotes the element in the
i-th row and the j-th column of A):

     cij = Sum aik*bkj

("n" stands for the size of the matrices, and "Sum" can be replaced by
the Greek capital letter "Sigma".)

Input and output:
There should be a possibility to specify the names of the input and
output files with the topmost method.

The input looks like this:
<n> <a11> <a12> ... <a1n> <a21> .. <ann> <b11> ... <bnn>

All Elements are integers. To keep scanning simple, they are
separated either by a single Character tab or Character cr.

<n>       is the size (number of rows and columns) of the
          subsequent matrices
<a??>     are the (signed) elements of A (listed row-wise)
<b??>     are the (signed) elements of B (listed row-wise)

The resulting matrix C is written to the specified output file in the
following manner:
<c11> <c12> .. <c1n>
<c21> ...
<cn1> ..       <cnn>

Elements of the same row are separated by a signle blank (or tab), and
rows are separated by a newline character.


*) Please follow the specification of input and output file formats
   as accurately as possible.

*) You may develop for (nearly) any Smalltalk-dialect, but plese avoid
   everything {*filter*}.

Thank you very much for your interest and your effort. Please send an
email containing the code. I`ll post the results as soon to this forum
as I've got any.



Schindlerg. 3A                  phone/fax: **43-1-478-17-09 (home)
A-1180 Vienna
Austria, Europe

Sun, 20 Apr 1997 18:52:24 GMT  
 [ 1 post ] 

 Relevant Pages 

1. ST-Programs wanted (CS investigation)

2. ST code needed for scientific investigation

3. ST Performance Benchmarks + OO1 Source Code

4. Performance: ST-80 ag. ST-V

5. Object code performance: figures wanted

6. ST-80 code to ST/V

7. Performance figures of ST/X

8. Performance Java vs ST

9. ST-80 Performance

10. Apple PowerMac ST/VW Performance

11. ST-80 Performance Problem

12. ST Express performance question


Powered by phpBB® Forum Software