Skip to content

things to consider when updating code #70

Description

@Kwasniok
  • std::lerp
  • std::midpoint
  • std::cmp_less etc.
  • std::valarray
  • expression templates for tensor expressions

Tensors

  • templated 1st performance 2nd
  • follow 'Haskell logic':
    • simple representational types
    • apply structure via type traits (must have sensible and usable defaults)
    • --> increases flexibility
  • separate representation from operation:
    • Tensor representation = multidim-array (and not more)
    • operations should be in namespace scope not class scope if possible since the latter forces a specific interpretation

Observations

  • The MSVC 19 std::array<T, 0> is not empty since the constructor still takes one argument of type int.

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

    maintenanceSonething requires maintenancenotesNotes regaring an issue

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions