From f942a43ac71cd434887f4755bc7308618bb6e886 Mon Sep 17 00:00:00 2001 From: OtonariS Date: Sat, 30 May 2026 23:18:23 +0900 Subject: [PATCH] =?UTF-8?q?cpp=E3=83=95=E3=82=A9=E3=83=AB=E3=83=80?= =?UTF-8?q?=E3=82=92=E7=A7=BB=E5=8B=95=E3=81=97rust=E3=83=95=E3=82=A9?= =?UTF-8?q?=E3=83=AB=E3=83=80=E3=83=97=E3=83=AD=E3=82=B8=E3=82=A7=E3=82=AF?= =?UTF-8?q?=E3=83=88=E3=82=92=E8=BF=BD=E5=8A=A0=E3=81=97=E3=81=BE=E3=81=99?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt => cpp/CMakeLists.txt | 0 CMakePresets.json => cpp/CMakePresets.json | 0 {setup => cpp/setup}/setup.bat | 0 {src => cpp/src}/include/matrix/blasgemm.h | 0 {src => cpp/src}/include/matrix/blasgemms/clblast-gemm.hpp | 0 {src => cpp/src}/include/matrix/blasgemms/cublas-gemm.hpp | 0 {src => cpp/src}/include/matrix/blasgemms/openblas-gemm.hpp | 0 {src => cpp/src}/include/matrix/calc.hpp | 0 {src => cpp/src}/include/matrix/ctor.hpp | 0 {src => cpp/src}/include/matrix/matrix | 0 {src => cpp/src}/include/matrix/matrix.h | 0 {src => cpp/src}/include/matrix/ops.hpp | 0 {src => cpp/src}/include/matrix/util.hpp | 0 {src => cpp/src}/include/neuralnetwork/layers/affine.hpp | 0 .../include/neuralnetwork/layers/batchnormalization.hpp | 0 {src => cpp/src}/include/neuralnetwork/layers/dropout.hpp | 0 .../src}/include/neuralnetwork/layers/identitywithloss.hpp | 0 {src => cpp/src}/include/neuralnetwork/layers/layerbase.hpp | 0 {src => cpp/src}/include/neuralnetwork/layers/optimizer.hpp | 0 {src => cpp/src}/include/neuralnetwork/layers/relu.hpp | 0 {src => cpp/src}/include/neuralnetwork/layers/sigmoid.hpp | 0 .../src}/include/neuralnetwork/layers/softmaxwithloss.hpp | 0 {src => cpp/src}/include/neuralnetwork/layers/tanh.hpp | 0 {src => cpp/src}/include/neuralnetwork/neuralnetwork.hpp | 0 {src => cpp/src}/include/view/view.h | 0 {src => cpp/src}/main.cpp | 0 {src => cpp/src}/matrixbenchmark.hpp | 0 {src => cpp/src}/matrixtest.hpp | 0 {src => cpp/src}/nntest.hpp | 0 rust/Cargo.toml | 6 ++++++ rust/src/main.rs | 3 +++ 31 files changed, 9 insertions(+) rename CMakeLists.txt => cpp/CMakeLists.txt (100%) rename CMakePresets.json => cpp/CMakePresets.json (100%) rename {setup => cpp/setup}/setup.bat (100%) rename {src => cpp/src}/include/matrix/blasgemm.h (100%) rename {src => cpp/src}/include/matrix/blasgemms/clblast-gemm.hpp (100%) rename {src => cpp/src}/include/matrix/blasgemms/cublas-gemm.hpp (100%) rename {src => cpp/src}/include/matrix/blasgemms/openblas-gemm.hpp (100%) rename {src => cpp/src}/include/matrix/calc.hpp (100%) rename {src => cpp/src}/include/matrix/ctor.hpp (100%) rename {src => cpp/src}/include/matrix/matrix (100%) rename {src => cpp/src}/include/matrix/matrix.h (100%) rename {src => cpp/src}/include/matrix/ops.hpp (100%) rename {src => cpp/src}/include/matrix/util.hpp (100%) rename {src => cpp/src}/include/neuralnetwork/layers/affine.hpp (100%) rename {src => cpp/src}/include/neuralnetwork/layers/batchnormalization.hpp (100%) rename {src => cpp/src}/include/neuralnetwork/layers/dropout.hpp (100%) rename {src => cpp/src}/include/neuralnetwork/layers/identitywithloss.hpp (100%) rename {src => cpp/src}/include/neuralnetwork/layers/layerbase.hpp (100%) rename {src => cpp/src}/include/neuralnetwork/layers/optimizer.hpp (100%) rename {src => cpp/src}/include/neuralnetwork/layers/relu.hpp (100%) rename {src => cpp/src}/include/neuralnetwork/layers/sigmoid.hpp (100%) rename {src => cpp/src}/include/neuralnetwork/layers/softmaxwithloss.hpp (100%) rename {src => cpp/src}/include/neuralnetwork/layers/tanh.hpp (100%) rename {src => cpp/src}/include/neuralnetwork/neuralnetwork.hpp (100%) rename {src => cpp/src}/include/view/view.h (100%) rename {src => cpp/src}/main.cpp (100%) rename {src => cpp/src}/matrixbenchmark.hpp (100%) rename {src => cpp/src}/matrixtest.hpp (100%) rename {src => cpp/src}/nntest.hpp (100%) create mode 100644 rust/Cargo.toml create mode 100644 rust/src/main.rs diff --git a/CMakeLists.txt b/cpp/CMakeLists.txt similarity index 100% rename from CMakeLists.txt rename to cpp/CMakeLists.txt diff --git a/CMakePresets.json b/cpp/CMakePresets.json similarity index 100% rename from CMakePresets.json rename to cpp/CMakePresets.json diff --git a/setup/setup.bat b/cpp/setup/setup.bat similarity index 100% rename from setup/setup.bat rename to cpp/setup/setup.bat diff --git a/src/include/matrix/blasgemm.h b/cpp/src/include/matrix/blasgemm.h similarity index 100% rename from src/include/matrix/blasgemm.h rename to cpp/src/include/matrix/blasgemm.h diff --git a/src/include/matrix/blasgemms/clblast-gemm.hpp b/cpp/src/include/matrix/blasgemms/clblast-gemm.hpp similarity index 100% rename from src/include/matrix/blasgemms/clblast-gemm.hpp rename to cpp/src/include/matrix/blasgemms/clblast-gemm.hpp diff --git a/src/include/matrix/blasgemms/cublas-gemm.hpp b/cpp/src/include/matrix/blasgemms/cublas-gemm.hpp similarity index 100% rename from src/include/matrix/blasgemms/cublas-gemm.hpp rename to cpp/src/include/matrix/blasgemms/cublas-gemm.hpp diff --git a/src/include/matrix/blasgemms/openblas-gemm.hpp b/cpp/src/include/matrix/blasgemms/openblas-gemm.hpp similarity index 100% rename from src/include/matrix/blasgemms/openblas-gemm.hpp rename to cpp/src/include/matrix/blasgemms/openblas-gemm.hpp diff --git a/src/include/matrix/calc.hpp b/cpp/src/include/matrix/calc.hpp similarity index 100% rename from src/include/matrix/calc.hpp rename to cpp/src/include/matrix/calc.hpp diff --git a/src/include/matrix/ctor.hpp b/cpp/src/include/matrix/ctor.hpp similarity index 100% rename from src/include/matrix/ctor.hpp rename to cpp/src/include/matrix/ctor.hpp diff --git a/src/include/matrix/matrix b/cpp/src/include/matrix/matrix similarity index 100% rename from src/include/matrix/matrix rename to cpp/src/include/matrix/matrix diff --git a/src/include/matrix/matrix.h b/cpp/src/include/matrix/matrix.h similarity index 100% rename from src/include/matrix/matrix.h rename to cpp/src/include/matrix/matrix.h diff --git a/src/include/matrix/ops.hpp b/cpp/src/include/matrix/ops.hpp similarity index 100% rename from src/include/matrix/ops.hpp rename to cpp/src/include/matrix/ops.hpp diff --git a/src/include/matrix/util.hpp b/cpp/src/include/matrix/util.hpp similarity index 100% rename from src/include/matrix/util.hpp rename to cpp/src/include/matrix/util.hpp diff --git a/src/include/neuralnetwork/layers/affine.hpp b/cpp/src/include/neuralnetwork/layers/affine.hpp similarity index 100% rename from src/include/neuralnetwork/layers/affine.hpp rename to cpp/src/include/neuralnetwork/layers/affine.hpp diff --git a/src/include/neuralnetwork/layers/batchnormalization.hpp b/cpp/src/include/neuralnetwork/layers/batchnormalization.hpp similarity index 100% rename from src/include/neuralnetwork/layers/batchnormalization.hpp rename to cpp/src/include/neuralnetwork/layers/batchnormalization.hpp diff --git a/src/include/neuralnetwork/layers/dropout.hpp b/cpp/src/include/neuralnetwork/layers/dropout.hpp similarity index 100% rename from src/include/neuralnetwork/layers/dropout.hpp rename to cpp/src/include/neuralnetwork/layers/dropout.hpp diff --git a/src/include/neuralnetwork/layers/identitywithloss.hpp b/cpp/src/include/neuralnetwork/layers/identitywithloss.hpp similarity index 100% rename from src/include/neuralnetwork/layers/identitywithloss.hpp rename to cpp/src/include/neuralnetwork/layers/identitywithloss.hpp diff --git a/src/include/neuralnetwork/layers/layerbase.hpp b/cpp/src/include/neuralnetwork/layers/layerbase.hpp similarity index 100% rename from src/include/neuralnetwork/layers/layerbase.hpp rename to cpp/src/include/neuralnetwork/layers/layerbase.hpp diff --git a/src/include/neuralnetwork/layers/optimizer.hpp b/cpp/src/include/neuralnetwork/layers/optimizer.hpp similarity index 100% rename from src/include/neuralnetwork/layers/optimizer.hpp rename to cpp/src/include/neuralnetwork/layers/optimizer.hpp diff --git a/src/include/neuralnetwork/layers/relu.hpp b/cpp/src/include/neuralnetwork/layers/relu.hpp similarity index 100% rename from src/include/neuralnetwork/layers/relu.hpp rename to cpp/src/include/neuralnetwork/layers/relu.hpp diff --git a/src/include/neuralnetwork/layers/sigmoid.hpp b/cpp/src/include/neuralnetwork/layers/sigmoid.hpp similarity index 100% rename from src/include/neuralnetwork/layers/sigmoid.hpp rename to cpp/src/include/neuralnetwork/layers/sigmoid.hpp diff --git a/src/include/neuralnetwork/layers/softmaxwithloss.hpp b/cpp/src/include/neuralnetwork/layers/softmaxwithloss.hpp similarity index 100% rename from src/include/neuralnetwork/layers/softmaxwithloss.hpp rename to cpp/src/include/neuralnetwork/layers/softmaxwithloss.hpp diff --git a/src/include/neuralnetwork/layers/tanh.hpp b/cpp/src/include/neuralnetwork/layers/tanh.hpp similarity index 100% rename from src/include/neuralnetwork/layers/tanh.hpp rename to cpp/src/include/neuralnetwork/layers/tanh.hpp diff --git a/src/include/neuralnetwork/neuralnetwork.hpp b/cpp/src/include/neuralnetwork/neuralnetwork.hpp similarity index 100% rename from src/include/neuralnetwork/neuralnetwork.hpp rename to cpp/src/include/neuralnetwork/neuralnetwork.hpp diff --git a/src/include/view/view.h b/cpp/src/include/view/view.h similarity index 100% rename from src/include/view/view.h rename to cpp/src/include/view/view.h diff --git a/src/main.cpp b/cpp/src/main.cpp similarity index 100% rename from src/main.cpp rename to cpp/src/main.cpp diff --git a/src/matrixbenchmark.hpp b/cpp/src/matrixbenchmark.hpp similarity index 100% rename from src/matrixbenchmark.hpp rename to cpp/src/matrixbenchmark.hpp diff --git a/src/matrixtest.hpp b/cpp/src/matrixtest.hpp similarity index 100% rename from src/matrixtest.hpp rename to cpp/src/matrixtest.hpp diff --git a/src/nntest.hpp b/cpp/src/nntest.hpp similarity index 100% rename from src/nntest.hpp rename to cpp/src/nntest.hpp diff --git a/rust/Cargo.toml b/rust/Cargo.toml new file mode 100644 index 0000000..8766a95 --- /dev/null +++ b/rust/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "NeuralNetwork" +version = "0.1.0" +edition = "2024" + +[dependencies] diff --git a/rust/src/main.rs b/rust/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/rust/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}