feat: modules
This commit is contained in:
14
linear-interpolation/src/vecutils.cpp
Normal file
14
linear-interpolation/src/vecutils.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <print>
|
||||
|
||||
#include "vecutils.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
void print3DMatrixSlice(const arr3d<double> &arr, int t) {
|
||||
for (int x = 0; x < arr.extent(1); x++) {
|
||||
for (int y = 0; y < arr.extent(2); y++) {
|
||||
print("{:>10.4f} ", arr[t,x,y]);
|
||||
}
|
||||
println("");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user