Template Function parrot::scalar#
Defined in File parrot.hpp
Function Documentation#
-
template<typename T>
auto parrot::scalar(T value)# Create a scalar (rank 0) array containing a single value.
- Template Parameters:
T – The element type (automatically deduced)
- Parameters:
value – The scalar value to store in the array
- Returns:
A fusion_array with rank 0 containing the single value