Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/BachiLi/lajolla_public into…
Browse files Browse the repository at this point in the history
… main
  • Loading branch information
BachiLi committed Jan 18, 2024
2 parents 37c6875 + 8e52d92 commit fd1f491
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,5 @@ jobs:
run: mkdir build; cd build; cmake ..
- name: make
run: cd build; cmake --build . -j -v
- name: macos-test
run: cd build; ./test_filter
#- name: test
# run: cd build; ctest
- name: test
run: cd build; ctest
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ If you are on Unix systems, try
mkdir build
cd build
cmake ..
cmake --build .
```
It requires compilers that support C++17 (gcc version >= 8, clang version >= 7, Apple Clang version >= 11.0, MSVC version >= 19.14).

Apple M1 users: you might need to build Embree from scratch since the prebuilt MacOS binary provided is built for x86 machines.
Apple M1 users: you might need to build Embree from scratch since the prebuilt MacOS binary provided is built for x86 machines. (But try build command above first.)

# Run
Try
Expand Down
2 changes: 0 additions & 2 deletions src/tests/matrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ int main(int argc, char *argv[]) {
);
Matrix4x4 m_inv = inverse(m);
Matrix4x4 m_inv_m = m_inv * m;
int count = 1;
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 4; j++) {
Real target = i == j ? Real(1) : Real(0);
if (fabs(m_inv_m(i, j) - target) > Real(1e-3)) {
printf("FAIL\n");
return 1;
}
count++;
}
}

Expand Down

0 comments on commit fd1f491

Please sign in to comment.