Created
October 30, 2011 22:17
-
-
Save will3216/1326528 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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