Hello everyone,
I tried to send this earlier today, and it didn't seem to come through, but
in the meantime I did more work on the problem.
I am writing some functions that will be made into a class, for doing basic
serial operations on cells (i.e. arrays of floats). The operations I have so
far are: transpose, reverse, invert, permute, shuffle.
The next function to finish is multiply, which does Boulez-style cell
multiplication. For the function to work correctly, it should remove any
duplicates from the array. Unfortunately, my brain's a little rusty right
now. I'm sure I did this in the only computer class I ever took (C++). But
I'm too sleepy to figure out the correct solution offhand, I think the ways
I'm coming up with are inefficient. Can anyone help? My attempt at this is
in the function remDup below, but I made some mistake, I'm sure relating to
using a while loop--I'm not sure what the problem is though, or a better way
to do it.
I've gotten really spoiled, by usually coding these sorts of things in
Python, where its amazingly quick to do list manipulations of any kind.
//cellFun.ck
public class Argh
{
fun static void print(float cell[])
{
for (0 => int i; i