Skip to content

Instantly share code, notes, and snippets.

@will3216
Created October 30, 2011 22:17
Show Gist options
  • Save will3216/1326528 to your computer and use it in GitHub Desktop.
Save will3216/1326528 to your computer and use it in GitHub Desktop.
def iterate_values(current_values: Array[Array[Double]]): Array[Array[Double]] = {
val new_values: Array[Array[Double]] = Array.fill[Double](initial_condition.size, initial_condition(0).size)(0.0)
for (i <- 0 until initial_condition.size) {
for (j <- 0 until new_values(i).size) {
new_values(i)(j) = sor_formula(current_values, i, j)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment