Skip to content

Make min/max functions polymorphic for different numeric types #21

@krystophny

Description

@krystophny

Description

The min/max functions in the codebase are currently hardcoded to only accept real types, limiting their usefulness. These functions should be made polymorphic to handle integer, real, and other numeric types.

Current Behavior

  • min/max functions only work with real types
  • Users need to implement separate functions for different numeric types

Expected Behavior

  • min/max functions should work with all numeric types (integer, real, complex)
  • Should use Fortran's generic interface or type-bound procedures

Priority

Low - This is a code quality improvement that enhances usability but doesn't affect core functionality.

Labels

  • enhancement
  • good first issue

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