[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] Arrays and class




When writing arrays of numbers to a binary file, the arrays need to be FloatArrays, as in:

f = File( "test", "wb");

f.write( FloatArray[1.0, 2.0 ] ) ;

If you had something like

IntegerArray[ 1, 2 ] or Array[ 1.1, 2.1 ]

and you needed to change, not the values but, the array class to FloatArray for printing, how would you do it short of simply creating a FloatArray copy of the array?

PAUL

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/