Skip to content

[FEA] Ones dimensionless operator  #492

@tmartin-gh

Description

@tmartin-gh

If the tensor size is known, the ones() operator should conform to it instead of requiring the user to pass in the size.

auto w = make_tensor<typename TypeParam::value_type>({test.params.nperseg});
...
(w = ones<typename TypeParam::value_type>()).run();

results in

MatX/test/00_operators/PWelch.cu(112): error: no instance of overloaded function "ones" matches the argument list
        (w = ones<typename TypeParam::value_type>()).run();

Metadata

Metadata

Assignees

No one assigned

    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