Implement bilinear interpolation
This commit is contained in:
@@ -12,3 +12,13 @@ void print3DMatrixSlice(const arr3d<double> &arr, int t) {
|
||||
println("");
|
||||
}
|
||||
}
|
||||
|
||||
void print3DMatrixSlice(const arr3d<std::pair<double, double>> &arr, int t) {
|
||||
for (int x = 0; x < arr.extent(1); x++) {
|
||||
for (int y = 0; y < arr.extent(2); y++) {
|
||||
auto [u,v] = arr[t,x,y];
|
||||
print("({:>7.4f}, {:>7.4f}) ", u, v);
|
||||
}
|
||||
println("");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user