Skip to content

hydra::fill_random fails to compile with declared arguments #105

Closed
@adicanto

Description

@adicanto

The following code doesn't compile because "The container is not iterable, or it is not convertible from/to the functor return value". Changing X with double in the container definition fixes the compilation, which hints to an issue with the conversion/understanding of the declared argument.

declarg(X, double)
using namespace hydra::arguments;
...
hydra::device::vector<X> data(n);
hydra::fill_random(data, hydra::UniformShape<X>(0.,1.) );
...

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions