This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <functional> | |
class AAA | |
{ | |
public: | |
bool A(int a, int b, int c) | |
{ | |
return a + b + c > 10; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include <iostream> | |
#include <iomanip> | |
#include <utility> | |
struct A | |
{ | |
std::string s; | |
A() : s("test") { } | |
A(const A& o) : s(o.s) { std::cout << "move failed!\n"; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <tuple> | |
int main() | |
{ | |
auto tuple = std::make_tuple(1, 'a', 2.3); | |
// unpack the tuple into individual variables declared at the call site | |
auto[i, c, d] = tuple; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <algorithm> | |
class A | |
{ | |
public: | |
// Simple constructor that initializes the resource. | |
explicit A(size_t length) | |
: mLength(length), mData(new int[length]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run on (12 X 3298 MHz CPU s) | |
CPU Caches: | |
L1 Data 32K (x6) | |
L1 Instruction 32K (x6) | |
L2 Unified 262K (x6) | |
L3 Unified 15728K (x1) | |
-------------------------------------------------------------------------------------------------- | |
Benchmark Time CPU Iterations | |
-------------------------------------------------------------------------------------------------- | |
BVH3/Nearest 138131 ns 138108 ns 7467 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[==========] Running 7 tests from 4 test cases. | |
[----------] Global test environment set-up. | |
[----------] 1 test from FDMICCGSolver3 | |
[ RUN ] FDMICCGSolver3.Memory | |
[ STAT ] Mem usage: 2.414410 GB. | |
[ OK ] FDMICCGSolver3.Memory (7952 ms) | |
[----------] 1 test from FDMICCGSolver3 (7953 ms total) | |
[----------] 1 test from FLIPSolver3 | |
[ RUN ] FLIPSolver3.Memory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run on (12 X 3298 MHz CPU s) | |
CPU Caches: | |
L1 Data 32K (x6) | |
L1 Instruction 32K (x6) | |
L2 Unified 262K (x6) | |
L3 Unified 15728K (x1) | |
-------------------------------------------------------------------------------------------------- | |
Benchmark Time CPU Iterations | |
-------------------------------------------------------------------------------------------------- | |
BVH3/Nearest 130629 ns 129395 ns 6400 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[==========] Running 761 tests from 160 test cases. | |
[----------] Global test environment set-up. | |
[----------] 1 test from APICSolver2 | |
[ RUN ] APICSolver2.UpdateEmpty | |
[ OK ] APICSolver2.UpdateEmpty (19 ms) | |
[----------] 1 test from APICSolver2 (21 ms total) | |
[----------] 1 test from APICSolver3 | |
[ RUN ] APICSolver3.UpdateEmpty | |
[ OK ] APICSolver3.UpdateEmpty (24 ms) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[==========] Running 761 tests from 160 test cases. | |
[----------] Global test environment set-up. | |
[----------] 1 test from APICSolver2 | |
[ RUN ] APICSolver2.UpdateEmpty | |
[ OK ] APICSolver2.UpdateEmpty (5 ms) | |
[----------] 1 test from APICSolver2 (5 ms total) | |
[----------] 1 test from APICSolver3 | |
[ RUN ] APICSolver3.UpdateEmpty | |
[ OK ] APICSolver3.UpdateEmpty (11 ms) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************************************* | |
> File Name: main.cpp | |
> Project Name: CubbyFlow | |
> Author: Chan-Ho Chris Ohk | |
> Purpose: SPH Simulator | |
> Created Time: 2017/06/18 | |
> Copyright (c) 2018, Chan-Ho Chris Ohk | |
*************************************************************************/ | |
#include <Core/Array/ArrayUtils.h> |