Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Make dimension of an ndarray a parameter and known at compile time #58

Open
Labels
Long-termThis issue will not be considered in the near-termenhancementNew feature or request
@forfudan

Description

@forfudan

Current situation

Currently, the dimension of thendarray is inferred from the shape at the run time. This would lead to extra cost.

Proposal

As the dimension is known at initialisation, it might be nice to makendim a parameter and known at compile time. Example:

varNDArray[2, DType.float64](1000,1000,random=True)# Creating a 1000x1000 2-D array (matrix)

Additional benefits

Making dimension a parameter at compile time may have additional benefits. For example, we can define alias to NDArrays more easily.

aliasVector= NDArray[1, _]aliasMatrix= NDArray[2, _]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Long-termThis issue will not be considered in the near-termenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp