Skip to content

Optimizing multiplication for Normed #174

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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