Implement bilinear interpolation

This commit is contained in:
robin committed 2024-04-22 00:21:11 +02:00
1 parent a123071fec
commit 51fe302920
12 files changed
+192 -15

No files matched your search

+10
View File
@@ -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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.