Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Namespaces | Functions
linspace.hpp File Reference

Creating an array of N values between two values. More...

#include "shambackends/DeviceBuffer.hpp"
#include "shambackends/vec.hpp"
#include "shamsys/NodeInstance.hpp"
+ Include dependency graph for linspace.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  shamalgs
 namespace to contain everything implemented by shamalgs
 
namespace  shamalgs::primitives
 namespace for primitive algorithm (e.g. sort, scan, reductions, ...)
 

Functions

template<typename Tval >
sham::DeviceBuffer< Tval > shamalgs::primitives::linspace (Tval Rmin, Tval Rmax, u32 N)
 Create an array of N values between two values.
 

Detailed Description

Creating an array of N values between two values.

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)
Yona Lapeyre (yona..nosp@m.lape.nosp@m.yre@e.nosp@m.ns-l.nosp@m.yon.f.nosp@m.r)

Definition in file linspace.hpp.