However, there are techniques for "stochastic" integration. Infamously used in finance
@Mikhail No, because if its random, the limit doesn't exist for any value. You should review your analysis course for requirements on integrability and continuity
but f(x) = rand(x) is not a function that can be integrated, as is
@Mikhail The Amount of mathematical rigor here leaves a lot to be desired. First you must identify what you are trying to do. You can use techniques to integrate an otherwise normal function with a stochastic or random component, but this is not the same as integrating rand(x)
> if you need to account for stochasticity in a function under an integral, this ~~cannot~~ CAN be done
In the most "brute force" attempt, you can propogate an error term through an integral
Attention hooker - buy cute pet, name the pet after some celebrity, then constantly flood social medias with pet pictures tagged celebrity's name. Attention seeking, you are doing it right ...
Catch::rngSeed() returns an integer and that's pretty much it
Which could indeed be a problem
// User code should use macros instead of functions.
// Sets the callback to be called right before death on error.
// Passing 0 will unset the callback.
void __asan_set_death_callback(void (*callback)(void));
Actually maybe it always displays the seed and I only notice it on failure because ctest is configured to only show the results of the tests on failure xD
I can't figure out the class thing after all. I have a struct Foo{ private: int bar(); }; previously I did friend Foo_tester; struct Foo_tester : Foo { void test() { assert(bar() == 0); } };. I'm not sure what the equivalent in catch2 is.
Making barprotected works, but that gives people wrong impressions how that class is supposed to be used.
Catch's class is in an anonymous namespace, so I don't know how to friend it.
Others have aggressive rooster problem, I have a problem of the opposite - my rooster is too timid. He's scared of pretty much everything other than the hen.
Thanks. I'll help another time. (Hint: I didn't say unique_ptr has no overhead, and whether optional "changes semantics" is debatable. Just file a feature request at the Boost Sml library, I suppose.) — sehe11 secs ago
Whenever he sees me, the cockerel pays attention to two things: my eyes and my hands. Because he understands either I have food to feed him or I am going to catch him and examine him or hug him. When I go after him he will scream murder and run like a fugitive.
You could probably bang out a reinitialize-able iterator in a few lines. Capture an iterator in the constructor, and on reinitialize() sub the captured value with your current value...
I'm not sure why it failed but this output looks pretty neat.
In my assert macros I converted '\r', '\n' and '\t' into "\\r", "\\n" and "\\t" and added a ^ under the first character with a difference to help with that.
I have ~10% less test code thanks to catch2. That's pretty good, even considering that catch2 comes as a 13kloc header which is bigger than my entire project.
> [...] `while( (void)0, false && static_cast<bool>( !!(buffer == test_data) ) )` error: code will never be executed [-Werror,-Wunreachable-code] note: silence by adding parentheses to mark code as explicitly dead
@sehe my own flipside: I had a whole hacked header of Boost.Test to get sensible output in nested scenarios, which was a whole pain to merge with upstream
That sounds bad. I had the same with Boost Process. And I stopped using it as it was as brittle as our hand-rolled process spawning in practice.
Oh. And just yesterday I ran into stupid attribute compatibility limitations with the simplest x3 grammar (ironically not using /any/ attribute propagation, and exclusively relying on semantic actions). I copped out after wasting at least half a day.
Rewrote the thing in Qi, and was much happier for it.
In short: Libraries with artificial constraints are bad for professional use. Corollary: conventions/convenience features may actually slow you down disproportionately if you run into a case not catered for
Wow. Where did that word mesh come from. I should take a break.
yeah, but that's obviously a biased sample since the tech guys are the ones currently making money off illegal content and would have to pay to implement the law
> The CXX_STANDARD property on target "SCE" contained an invalid value: "20". > The CXX_STANDARD property on target "SCE" contained an invalid value: "2a".
@ratchetfreak I think ninja tries to do that. But I haven't used that myself. And as far as I understand, it needs a preprocessor to generate the ninja files.
if directory&file monitoring wasn't broken on every platform I'd say keep a watchdog monitoring changes to files and update the to-build set for each target as appropriate
@nwp The US is probably so high on that list from all the right-wing parents pulling their kids out of school and home-schooling them so they don't "turn into liberals". ahahaha. There I said it.
@sehe Its not documented nor is it related to definition. Fails to build precisely because certain operators like less_than are not defined for complex numbers, and the library isn't general enough for you to specify them. Oh welp. Time to roll my own.
Need to find a fast adaptive monte carlo library with complex values (but not bounds) supoprt