hoffnoob1

u/hoffnoob1



r/cpp•

I'm writing a code that involves a sparse-matrix vector multiplication where all non-zeros entries of the matrix are 1.
I have a generic code (templated) for building a sparse matrix and I was wondering if I could specify the Scalar type to be `std::integral_constant<double, double(1.)>`.

So my question is what happens when something like this is compiled ?
#include <type_traits>

#include <cstdlib>

int main()

{

`using Scalar = std::integral_constant<double, double(1)>;`

 

`Scalar* x = new Scalar[100];`



`delete[] x;`



`return EXIT_SUCCESS;`

}

78



r/SocialParis•

I (34M) arrived in Paris a few mounths ago and I'm looking for people to go pump-tracking with. I usually go to the pump track near tremblay park but I'm open to discover other people.

43

In science fiction, we often see fusion drives with multiple thrusters (e.g. the Expanse, Halo's Paris class). On such ships, is there a single fusion core and plasma rooting with EM coils or a core per thrusters.

To me, single core pauses two difficulties:
a) transporting high-temperature plasma through the thrusters -> more heat management
b) the Plasma is likely to lose some energy during transit

I guess the plasma is fast enough it could be negligible, idk I'm not a rocket scientist

Is this problematic addressed in sci-fi or real science?

16




r/MagicArena•

I'm a new player and I would like to build "noob friendly" a dragon or drake deck.

All the deck I found on youtube seemed to be a bit too advanced for me.

Do you have deck recomendations ?

Thanks

07

r/masterduel•

I tried to build a Felgrand / Branded deck but I often end up in situations where I can't play, my oponent have ~5 negates.

I would like to make the deck a bit stronger right now it feels like:

  1. I need either stronger going second cards or more hand tranps. (Heavenly Zephyr - Miradora is kinda like a hand trap but doesn't do enough for me)
  2. I need to make the deck more consistant by either adding some red-eyes support or felgrand support

Which card would you advise me to add for

  • Felgrand support
  • Red-eyes support
  • Stronger going second

Thanks in advance

https://preview.redd.it/oz7w6qyc5zwa1.png?width=1366&format=png&auto=webp&v=enabled&s=5976584cbc570c4e57e02658bcb9ab838f50e3d

07