Skip to content

af::array constructor from initializer list #2825

@pauljurczak

Description

@pauljurczak

As an option for short array, in addition to

int h_buffer[] = {23, 34, 18, 99, 34};
array A(4, h_buffer);   

can we get

array A(4, {23, 34, 18, 99, 34});

which will allocate the memory and initialize it with values from initializer list.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions