8000 There is a precision issue with np.arange() when handling floating-point numbers. It is recommended to use np.linspace() instead. · Issue #583 · PyDMD/PyDMD · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
There is a precision issue with np.arange() when handling floating-point numbers. It is recommended to use np.linspace() instead. #583
Open
@kyoheyo

Description

@kyoheyo

When dealing with non-integer ‘dt’ intervals in DMD_Base.dmd_timesteps(), np.arange(t_start, t_end + dt, dt) will include an extra ‘t_end + dt’, and the ideal result should be [t_start, t_end].
It is recommended to use np.linspace() instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0