Skip to content

Commit e96c6e2

Browse files
renovate structure
remove README.md for some reason
1 parent c3c19f4 commit e96c6e2

File tree

15 files changed

+33
-247
lines changed

15 files changed

+33
-247
lines changed

3D/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include_directories(${CMAKE_CURRENT_SOURCE_DIR} include)
1+
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}/..)
22

33
#library utama
44
#add_librar(3d INTERFACE)

3D/include/custom_trait.hxx

Lines changed: 0 additions & 91 deletions
This file was deleted.

3D/include/obj3d.hxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
#pragma once
2121

2222
#include <cassert>
23-
#include <matrix.hxx>
24-
#include <vec.hxx>
23+
#include <linear/include/matrix.hxx>
24+
#include <linear/include/vec.hxx>
2525

2626
namespace l3d {
2727
// FP = floating point I = integer

3D/src/test_3d.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
*/
1919

2020

21-
#include <custom_trait.hxx>
21+
#include <type_traits>
2222
#include <iomanip>
2323
#include <ios>
2424
#include <iostream>
25-
#include <matrix.hxx>
25+
#include <linear/include/matrix.hxx>
2626
#include <obj3d.hxx>
27-
#include <vec.hxx>
27+
#include <linear/include/vec.hxx>
2828

2929
#ifndef M_PI
3030
#define M_PI 3.14159265358979323846
@@ -42,7 +42,7 @@ void print(const l3d::Vec<T, N> &vn, int n_indent) {
4242
template <typename T, int N>
4343
void print(const l3d::Mat<T, N> &m, int n_indent) {
4444
using namespace std;
45-
bool is_float = ::is_same<T, float>;
45+
bool is_float = std::is_same_v<T, float>;
4646
ios oldState(nullptr);
4747
oldState.copyfmt(cout);
4848
cout << fixed << setprecision(is_float ? 6 : 15) << endl;

README-id.md

Lines changed: 0 additions & 63 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 63 deletions
This file was deleted.

discrete/CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
11
include_directories(include)
2+
3+
set(SRC_SOURCES "src")
4+
5+
# Buat executable
6+
add_executable(prime ${SRC_SOURCES}/prime.cxx)
7+
add_executable(fibonacci ${SRC_SOURCES}/fibonacci.cxx)
8+
9+
# add test
10+
add_test(NAME "Test find prime on 2 <= p <= 10000 and print all" COMMAND prime -l 100000)
11+
add_test(NAME "Test find 10000 prime and print all" COMMAND prime -s 100000)
12+
add_test(NAME "Test, is Prime 104729? print the number and the state" COMMAND prime -n 104729)
13+
add_test(NAME "Test suffix prime class and print as Test, is prime" COMMAND prime -n 10k)
14+
add_test(NAME "Test find and print 100 fibonacci " COMMAND fibonacci -l 100)
15+
add_test(NAME "Test find and print 100th fibonnaci" COMMAND fibonacci -i 100)
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)