« first day (2769 days earlier)      last day (619 days later) » 

8:58 AM
0
Q: cannot find VehicleObstacleControl module -- in module (veins::PhyLayer80211p)

user1719774I have encountered a critical issue in veins-5.2 simulation in the vehicle obstacle shadowing model as follows. **initializeVehicleObstacleShadowing(): cannot find VehicleObstacleControl module -- in module (veins::PhyLayer80211p) RSUExampleScenario.rsu[0].nic.phy80211p (id=11), during netwo...

 
3
Q: Why Kleisli Markov Categories and not the Eilenberg-Moore Categories of the associated Monads

Q.FaustusWhy is there so much interest in the Markov categories which are Kleisli categories for monads corresponding to distributions etc. but not much discussion of the E.M. categories? For example, the E.M. category of algebras for the finitely supported distribution monad - the so called finitary Giry...

 
 
3 hours later…
12:22 PM
-1
Q: why is python numpy so much quicker?

Mah NehI have carried out a simple multiplication of an array, in pseudocode: a = [0,1,2...,100000] c=0 for el in a: c+= el*el If this is done using numpy (a dot product), the code is 250-500 times faster, running on my laptop (I guess it is using CPU to do the computations?) Apparently this has to d...

 
1:04 PM
6
Q: Why does x = x * y give a different result from x *= y?

AditeyaI have the following function: pub fn s_v1(n: &u64) -> u64 { let mut x: u64 = 1; for i in 1..=*n { x = x * (*n + i) / i; } x } This code gives the correct answer for s_v1(&20) == 137846528820 However, if I change the line in the for loop to x *= (*n + i) / i; The answe...

 

« first day (2769 days earlier)      last day (619 days later) »