trying out a bunch of toolkits
This commit is contained in:
parent
c62a29e900
commit
05a281bf42
15 changed files with 25655 additions and 4235 deletions
6
.gitmodules
vendored
6
.gitmodules
vendored
|
|
@ -1,3 +1,9 @@
|
|||
[submodule "nvpro_core"]
|
||||
path = nvpro_core
|
||||
url = git@github.com:CDaut/nvpro_core.git
|
||||
[submodule "utk_experiments/utk"]
|
||||
path = utk_experiments/utk
|
||||
url = git@github.com:utk-team/utk.git
|
||||
[submodule "utk_experiments/psa"]
|
||||
path = utk_experiments/psa
|
||||
url = git@github.com:nodag/psa.git
|
||||
|
|
|
|||
2
.idea/.name
generated
2
.idea/.name
generated
|
|
@ -1 +1 @@
|
|||
targetrdf
|
||||
psa
|
||||
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
|
|
@ -3,7 +3,7 @@
|
|||
<component name="CMakePythonSetting">
|
||||
<option name="pythonIntegrationState" value="YES" />
|
||||
</component>
|
||||
<component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$/targetrdf">
|
||||
<component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$/utk_experiments/psa">
|
||||
<contentRoot DIR="$PROJECT_DIR$" />
|
||||
</component>
|
||||
</project>
|
||||
5
.idea/vcs.xml
generated
5
.idea/vcs.xml
generated
|
|
@ -3,5 +3,10 @@
|
|||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/nvpro_core" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/utk_experiments/psa" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/utk_experiments/utk" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/utk_experiments/utk/build/_deps/cli11-src" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/utk_experiments/utk/build/_deps/semidiscrete_ot_2d-src" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/utk_experiments/utk/build/_deps/spdlog-src" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
|
|
@ -57,12 +57,20 @@
|
|||
valgrind
|
||||
# general deps
|
||||
imgui
|
||||
# calculating fast fourier transforms
|
||||
fftw
|
||||
# psa deps
|
||||
cgal
|
||||
boost
|
||||
cairo
|
||||
] ++ [
|
||||
## Phython stuff for plotting
|
||||
(python3.withPackages (ps: with ps; with python3Packages; [
|
||||
jupyter
|
||||
ipython
|
||||
matplotlib
|
||||
numpy
|
||||
ipympl
|
||||
]))
|
||||
];
|
||||
# TODO: include deps depending on XDG_SESSION_TYPE here (wayland vs X11)s
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load diff
21
utk_experiments/CMakeLists.txt
Normal file
21
utk_experiments/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
cmake_minimum_required(VERSION 3.20)
|
||||
project(utk_tests CXX)
|
||||
|
||||
if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
endif ()
|
||||
|
||||
find_package(UTK PATHS ./utk)
|
||||
|
||||
set(CMAKE_CXX_FLAGS "-O3 -Wall -Wall -g")
|
||||
|
||||
set(SOURCE_FILES
|
||||
main.cpp
|
||||
)
|
||||
|
||||
set(HEADER_FILES
|
||||
|
||||
)
|
||||
|
||||
add_executable(${PROJECT_NAME} ${SOURCE_FILES} ${HEADER_FILES})
|
||||
target_link_libraries(${PROJECT_NAME} UTK_LIBRARY fftw3)
|
||||
38
utk_experiments/main.cpp
Normal file
38
utk_experiments/main.cpp
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
#include <utk/utils/PointsetIO.hpp>
|
||||
#include <utk/utils/Pointset.hpp>
|
||||
#include <utk/samplers/SamplerStep.hpp>
|
||||
#include <utk/metrics/RadialSpectrum.hpp>
|
||||
|
||||
#define DIMENSION 1025
|
||||
|
||||
int main()
|
||||
{
|
||||
utk::Pointset<long double> points;
|
||||
|
||||
//sample points using heck
|
||||
utk::SamplerStep sampler{
|
||||
0.606,
|
||||
8,
|
||||
};
|
||||
|
||||
std::cout << "generating samples…" << std::endl;
|
||||
|
||||
if(sampler.generateSamples(points, 4096))
|
||||
{
|
||||
std::cout << "computing spectrum…" << std::endl;
|
||||
auto result = utk::Spectrum{DIMENSION, true}.compute(points);
|
||||
|
||||
write_text_pointset("points.txt", points);
|
||||
|
||||
std::ofstream file;
|
||||
file.open("spectrum.txt");
|
||||
|
||||
file << DIMENSION << std::endl;
|
||||
|
||||
for(auto freq : result)
|
||||
{
|
||||
file << std::setprecision(std::numeric_limits<long double>::digits10 + 2) << std::fixed;
|
||||
file << freq << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
145
utk_experiments/plotting/plotter.ipynb
Normal file
145
utk_experiments/plotting/plotter.ipynb
Normal file
File diff suppressed because one or more lines are too long
25282
utk_experiments/plotting/spectrum_website.txt
Normal file
25282
utk_experiments/plotting/spectrum_website.txt
Normal file
File diff suppressed because it is too large
Load diff
1
utk_experiments/psa
Submodule
1
utk_experiments/psa
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit b042eea7f1dde5b428a225929fb949b8403e82c1
|
||||
1
utk_experiments/utk
Submodule
1
utk_experiments/utk
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit a12c408ddac03425444c857a725572bfe6fa4837
|
||||
Loading…
Add table
Add a link
Reference in a new issue