File tree Expand file tree Collapse file tree 25 files changed +595
-0
lines changed
electrical/component/include Expand file tree Collapse file tree 25 files changed +595
-0
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ cpp-playground - C++ experiments and learning playground
3+ Copyright (C) 2025 M. Reza Dwi Prasetiawan
4+
5+ This project contains various experiments and explorations in C++,
6+ including topics such as number systems, neural networks, and
7+ visualizations of prime number patterns.
8+
9+ This program is free software: you can redistribute it and/or modify
10+ it under the terms of the GNU General Public License as published by
11+ the Free Software Foundation, either version 3 of the License, or
12+ (at your option) any later version.
13+
14+ This program is distributed in the hope that it will be useful,
15+ but WITHOUT ANY WARRANTY; without even the implied warranty of
16+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+ GNU General Public License for more details.
18+
19+ You should have received a copy of the GNU General Public License
20+ along with this program. If not, see <https://www.gnu.org/licenses/>.
21+ */
22+
23+
124#pragma once
225
326#include < cstdint>
Original file line number Diff line number Diff line change 1+ /*
2+ cpp-playground - C++ experiments and learning playground
3+ Copyright (C) 2025 M. Reza Dwi Prasetiawan
4+
5+ This project contains various experiments and explorations in C++,
6+ including topics such as number systems, neural networks, and
7+ visualizations of prime number patterns.
8+
9+ This program is free software: you can redistribute it and/or modify
10+ it under the terms of the GNU General Public License as published by
11+ the Free Software Foundation, either version 3 of the License, or
12+ (at your option) any later version.
13+
14+ This program is distributed in the hope that it will be useful,
15+ but WITHOUT ANY WARRANTY; without even the implied warranty of
16+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+ GNU General Public License for more details.
18+
19+ You should have received a copy of the GNU General Public License
20+ along with this program. If not, see <https://www.gnu.org/licenses/>.
21+ */
22+
23+
124#pragma once
225
326#include < cassert>
Original file line number Diff line number Diff line change 1+ /*
2+ cpp-playground - C++ experiments and learning playground
3+ Copyright (C) 2025 M. Reza Dwi Prasetiawan
4+
5+ This project contains various experiments and explorations in C++,
6+ including topics such as number systems, neural networks, and
7+ visualizations of prime number patterns.
8+
9+ This program is free software: you can redistribute it and/or modify
10+ it under the terms of the GNU General Public License as published by
11+ the Free Software Foundation, either version 3 of the License, or
12+ (at your option) any later version.
13+
14+ This program is distributed in the hope that it will be useful,
15+ but WITHOUT ANY WARRANTY; without even the implied warranty of
16+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+ GNU General Public License for more details.
18+
19+ You should have received a copy of the GNU General Public License
20+ along with this program. If not, see <https://www.gnu.org/licenses/>.
21+ */
22+
23+
124#pragma once
225
326#include < cassert>
Original file line number Diff line number Diff line change 1+ /*
2+ cpp-playground - C++ experiments and learning playground
3+ Copyright (C) 2025 M. Reza Dwi Prasetiawan
4+
5+ This project contains various experiments and explorations in C++,
6+ including topics such as number systems, neural networks, and
7+ visualizations of prime number patterns.
8+
9+ This program is free software: you can redistribute it and/or modify
10+ it under the terms of the GNU General Public License as published by
11+ the Free Software Foundation, either version 3 of the License, or
12+ (at your option) any later version.
13+
14+ This program is distributed in the hope that it will be useful,
15+ but WITHOUT ANY WARRANTY; without even the implied warranty of
16+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+ GNU General Public License for more details.
18+
19+ You should have received a copy of the GNU General Public License
20+ along with this program. If not, see <https://www.gnu.org/licenses/>.
21+ */
22+
23+
124#pragma once
225
326#include < cassert>
Original file line number Diff line number Diff line change 1+ /*
2+ cpp-playground - C++ experiments and learning playground
3+ Copyright (C) 2025 M. Reza Dwi Prasetiawan
4+
5+ This project contains various experiments and explorations in C++,
6+ including topics such as number systems, neural networks, and
7+ visualizations of prime number patterns.
8+
9+ This program is free software: you can redistribute it and/or modify
10+ it under the terms of the GNU General Public License as published by
11+ the Free Software Foundation, either version 3 of the License, or
12+ (at your option) any later version.
13+
14+ This program is distributed in the hope that it will be useful,
15+ but WITHOUT ANY WARRANTY; without even the implied warranty of
16+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+ GNU General Public License for more details.
18+
19+ You should have received a copy of the GNU General Public License
20+ along with this program. If not, see <https://www.gnu.org/licenses/>.
21+ */
22+
23+
124#include < custom_trait.hxx>
225#include < iomanip>
326#include < ios>
Original file line number Diff line number Diff line change 1+ /*
2+ cpp-playground - C++ experiments and learning playground
3+ Copyright (C) 2025 M. Reza Dwi Prasetiawan
4+
5+ This project contains various experiments and explorations in C++,
6+ including topics such as number systems, neural networks, and
7+ visualizations of prime number patterns.
8+
9+ This program is free software: you can redistribute it and/or modify
10+ it under the terms of the GNU General Public License as published by
11+ the Free Software Foundation, either version 3 of the License, or
12+ (at your option) any later version.
13+
14+ This program is distributed in the hope that it will be useful,
15+ but WITHOUT ANY WARRANTY; without even the implied warranty of
16+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+ GNU General Public License for more details.
18+
19+ You should have received a copy of the GNU General Public License
20+ along with this program. If not, see <https://www.gnu.org/licenses/>.
21+ */
22+
23+
124#pragma once
225
326#include < type_traits>
Original file line number Diff line number Diff line change 1+ /*
2+ cpp-playground - C++ experiments and learning playground
3+ Copyright (C) 2025 M. Reza Dwi Prasetiawan
4+
5+ This project contains various experiments and explorations in C++,
6+ including topics such as number systems, neural networks, and
7+ visualizations of prime number patterns.
8+
9+ This program is free software: you can redistribute it and/or modify
10+ it under the terms of the GNU General Public License as published by
11+ the Free Software Foundation, either version 3 of the License, or
12+ (at your option) any later version.
13+
14+ This program is distributed in the hope that it will be useful,
15+ but WITHOUT ANY WARRANTY; without even the implied warranty of
16+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+ GNU General Public License for more details.
18+
19+ You should have received a copy of the GNU General Public License
20+ along with this program. If not, see <https://www.gnu.org/licenses/>.
21+ */
22+
23+
124#include < iostream>
225#include < map>
326#include < string>
Original file line number Diff line number Diff line change 1+ /*
2+ cpp-playground - C++ experiments and learning playground
3+ Copyright (C) 2025 M. Reza Dwi Prasetiawan
4+
5+ This project contains various experiments and explorations in C++,
6+ including topics such as number systems, neural networks, and
7+ visualizations of prime number patterns.
8+
9+ This program is free software: you can redistribute it and/or modify
10+ it under the terms of the GNU General Public License as published by
11+ the Free Software Foundation, either version 3 of the License, or
12+ (at your option) any later version.
13+
14+ This program is distributed in the hope that it will be useful,
15+ but WITHOUT ANY WARRANTY; without even the implied warranty of
16+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+ GNU General Public License for more details.
18+
19+ You should have received a copy of the GNU General Public License
20+ along with this program. If not, see <https://www.gnu.org/licenses/>.
21+ */
22+
23+
124#pragma once
225
326#include < cstdio>
Original file line number Diff line number Diff line change 1+ /*
2+ cpp-playground - C++ experiments and learning playground
3+ Copyright (C) 2025 M. Reza Dwi Prasetiawan
4+
5+ This project contains various experiments and explorations in C++,
6+ including topics such as number systems, neural networks, and
7+ visualizations of prime number patterns.
8+
9+ This program is free software: you can redistribute it and/or modify
10+ it under the terms of the GNU General Public License as published by
11+ the Free Software Foundation, either version 3 of the License, or
12+ (at your option) any later version.
13+
14+ This program is distributed in the hope that it will be useful,
15+ but WITHOUT ANY WARRANTY; without even the implied warranty of
16+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+ GNU General Public License for more details.
18+
19+ You should have received a copy of the GNU General Public License
20+ along with this program. If not, see <https://www.gnu.org/licenses/>.
21+ */
22+
23+
124#include < assert.hxx>
225
326int main () {
Original file line number Diff line number Diff line change 1+ /*
2+ cpp-playground - C++ experiments and learning playground
3+ Copyright (C) 2025 M. Reza Dwi Prasetiawan
4+
5+ This project contains various experiments and explorations in C++,
6+ including topics such as number systems, neural networks, and
7+ visualizations of prime number patterns.
8+
9+ This program is free software: you can redistribute it and/or modify
10+ it under the terms of the GNU General Public License as published by
11+ the Free Software Foundation, either version 3 of the License, or
12+ (at your option) any later version.
13+
14+ This program is distributed in the hope that it will be useful,
15+ but WITHOUT ANY WARRANTY; without even the implied warranty of
16+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+ GNU General Public License for more details.
18+
19+ You should have received a copy of the GNU General Public License
20+ along with this program. If not, see <https://www.gnu.org/licenses/>.
21+ */
22+
23+
124#include < cstdint>
225
326enum Endianness { BIG, LITTLE };
You can’t perform that action at this time.
0 commit comments