Skip to content

Guidance on method definition #20

@ljulliar

Description

@ljulliar

I was about to write the spec for NDArray#sqrt when I realized that as it is today I can only call:

z = MXNet::NDArray.sqrt(x)
which means NDArray.sqrt (class method)

I guess for #sqrt to work I need to implement

def sqrt
....
end

in NDArray Ruby class, right ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions