Skip to content

Returning scalar, If supplied dimensions are all 1 in zeros, etc #5

Open
@aminya

Description

@aminya

For array generation functions, If all of the dimensions that are supplied are 1, the resulting array should be a scalar.

Different tasks of this to do plan:

Achievement check:

onesM(1,1,1,1) # shuold give 1 (1 dimensional) 

or we can get a :mat argument to do this, so this prevents type stability problems

onesM(:mat, 1,1,1,1) # shuold give 1 (1 dimensional) 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions