Skip to content

[FEA] Support custom “Delta Degrees of Freedom” for matx::var #420

@ZJUGuoShuai

Description

@ZJUGuoShuai

Is your feature request related to a problem? Please describe.

I found that matx::var do not support the ddof argument like NumPy var. This parameter determines how to do the final division step.

ddof is 0 by default in NumPy, whereas in MatX it is currently fixed at ddof=1. Is it possible to support having the user pass in a custom ddof parameter? A similar feature is implemented by PyTorch, in their var function, where the equivalent argument is correction.

Describe the solution you'd like
I want a var function which looks like

void var(OutType dest, const InType &in, const int ddof = 1, int stream = 0)

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