Menu

#157 Add some missing internal utility functions

0.5 goal
open
nobody
None
nobody
2024-04-01
2019-04-25
Ulf Lorenz
No
What and Why

There is some functionality missing that could be more readily available:

  • checking for the dimensions of a wave function or an operator or a matrix applied along a single dimension occurs again and again. It would be useful to have such checking at hand.
  • There is no possibility to easily form a direct product. Such tensor extensions would be nice.
  • an internally used ThrowOnNull template function that takes a shared_ptr<t> and a message and throws a NullPointerException if the ptr is null. Nice shortcut for the code; could be part of wp_exceptions.hpp
    • Idea: something that checks that no NaNs or INFs occur. This could be used for example when orthogonalizing states.
    </t>

Related

Tickets: #70

Discussion

  • Ulf Lorenz

    Ulf Lorenz - 2019-12-31
    • Milestone: Backlog --> 0.3.1
     
  • Ulf Lorenz

    Ulf Lorenz - 2020-01-02
    • Milestone: 0.3.1 --> 0.4 goal
     
  • Ulf Lorenz

    Ulf Lorenz - 2020-05-21
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,3 +4,5 @@
    
     * checking for the dimensions of a wave function or an operator or a matrix applied along a single dimension occurs again and again. It would be useful to have such checking at hand.
     * There is no possibility to easily form a direct product. Such tensor extensions would be nice.
    +* an internally used ThrowOnNull template function that takes a shared_ptr&lt;T&gt; and a message and throws a NullPointerException if the ptr is null. Nice shortcut for the code; could be part of wp_exceptions.hpp
    +* merge Representation::hasWavefunctionShape() and Representation::hasOperatorShape() to hasStateShape or so for easier error checking. Maybe a utility function would also make sense here.
    
     
  • Ulf Lorenz

    Ulf Lorenz - 2020-11-09
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -5,4 +5,3 @@
     * checking for the dimensions of a wave function or an operator or a matrix applied along a single dimension occurs again and again. It would be useful to have such checking at hand.
     * There is no possibility to easily form a direct product. Such tensor extensions would be nice.
     * an internally used ThrowOnNull template function that takes a shared_ptr&lt;T&gt; and a message and throws a NullPointerException if the ptr is null. Nice shortcut for the code; could be part of wp_exceptions.hpp
    -* merge Representation::hasWavefunctionShape() and Representation::hasOperatorShape() to hasStateShape or so for easier error checking. Maybe a utility function would also make sense here.
    
     
  • Ulf Lorenz

    Ulf Lorenz - 2022-11-18
    • summary: Add some missing utility functions --> Add some missing internal utility functions
     
  • Ulf Lorenz

    Ulf Lorenz - 2022-12-25
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -5,3 +5,4 @@
     * checking for the dimensions of a wave function or an operator or a matrix applied along a single dimension occurs again and again. It would be useful to have such checking at hand.
     * There is no possibility to easily form a direct product. Such tensor extensions would be nice.
     * an internally used ThrowOnNull template function that takes a shared_ptr&lt;T&gt; and a message and throws a NullPointerException if the ptr is null. Nice shortcut for the code; could be part of wp_exceptions.hpp
    +    * Idea: something that checks that no NaNs occur. This could be used for example when orthogonalizing states.
    
     
  • Ulf Lorenz

    Ulf Lorenz - 2022-12-25
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -5,4 +5,4 @@
     * checking for the dimensions of a wave function or an operator or a matrix applied along a single dimension occurs again and again. It would be useful to have such checking at hand.
     * There is no possibility to easily form a direct product. Such tensor extensions would be nice.
     * an internally used ThrowOnNull template function that takes a shared_ptr&lt;T&gt; and a message and throws a NullPointerException if the ptr is null. Nice shortcut for the code; could be part of wp_exceptions.hpp
    -    * Idea: something that checks that no NaNs occur. This could be used for example when orthogonalizing states.
    +    * Idea: something that checks that no NaNs or INFs occur. This could be used for example when orthogonalizing states.
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.