Skip to content

Optimizing multiplication for Normed #174

@kimikage

Description

@kimikage

The current implementation of multiplication for Normed uses floating point arithmetic.

The following three points are important in adding checked_mul:

  1. Unlike checked_add/checked_sub, FixedPoint multiplication and rawtype multiplication are different.
  2. N0f8, N0f16 and so on, do not cause overflow in multiplication.
  3. Float-->Normed conversion code may throw an exception.

Therefore, the optimization for at least N0f8 and N0f16 is important.

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