Skip to content

Instantly share code, notes, and snippets.

@mjburgess
Created March 17, 2013 14:36
Show Gist options
  • Save mjburgess/5181798 to your computer and use it in GitHub Desktop.
Save mjburgess/5181798 to your computer and use it in GitHub Desktop.
struct DEIteration {
opts: DEOptions,
population: @mut [@[float]],
fitnesses: @mut [@[float]],
crossovers: @mut [@[float]]
}
impl DEIteration {
static fn new(opts: DEOptions) -> DEIteration {
DEIteration { opts: opts,
population: @mut [@[0.0]],
fitnesses: @mut [@[0.0]],
crossovers: @mut [@[0.0]]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment