Skip to content
  1. Nov 19, 2024
  2. Nov 17, 2024
  3. Nov 14, 2024
  4. Nov 07, 2024
  5. Oct 28, 2024
  6. Oct 18, 2024
  7. Oct 08, 2024
  8. Sep 20, 2024
  9. Sep 18, 2024
  10. Sep 12, 2024
    • Matthias Diener's avatar
      use numpy type promotion directly (#540) · 850dcb47
      Matthias Diener authored
      * use numpy 2 type promotion directly
      
      * fix lint
      
      * add comment & test regarding np.result_type with pytato arrays
      
      * adjust README
      
      * revert old_numpy test adjustment (tested manually with numpy 1.26)
      
      * remove comment
      850dcb47
  11. Sep 09, 2024
    • Addison A.'s avatar
      Update tag propagation logic (#494) · 3fedafc2
      Addison A. authored
      
      
      * Add new propagation logic
      
      * Fix failing tests
      
      * Actually fix failing tests
      
      * linter fixes + other fixes
      
      * use pytools to generate propagation graph
      
      * add pytools 2024.1.14 as dependency
      
      * add correct pytools version to requirements.txt
      
      * remove dependencies in pyproject.toml, add dependency on pytools 2024.1.14 to setup.py
      
      * IgnoredForPropagationTag -> AxisIgnoredForPropagationTag; update docs
      
      * change wording
      
      ---------
      
      Co-authored-by: default avatarAndreas Klöckner <inform@tiker.net>
      3fedafc2
    • Addison A.'s avatar
      Allow reshapes for 'F' ordered arrays (#455) · 2de3bc9c
      Addison A. authored
      
      
      * First shot at implementing 'F' ordered array reshapes
      
      * Remove restriction on reshape order
      
      * Refactor to unify paths
      
      * Slight adjustment
      
      * Update comment wording
      
      * Rough draft of old -> new axis mapping
      
      * Absorb new tag propagation
      
      * Revert changes
      
      * don't linearize everything
      
      * pass tests with new reshaped indices getter
      
      * revert change that belongs to another branch
      
      * fix mypy issues
      
      * fix failing arraycontext test
      
      * fix failing flake8 test
      
      * fixes
      
      * remove unnecessary import
      
      * ruff fixes + small change
      
      * Stopped in the middle
      
      * improved index expression generation
      
      * add test for F ordered reshapes
      
      * remove redundant scalar check
      
      * Improve reshape docs
      
      * Goodbye unnecessary variable
      
      * Way more reshape test coverage
      
      ---------
      
      Co-authored-by: default avatarAndreas Kloeckner <inform@tiker.net>
      2de3bc9c
  12. Aug 25, 2024
  13. Aug 23, 2024
  14. Aug 06, 2024
  15. Aug 02, 2024
    • Matt Smith's avatar
      Add `TransformMapper`/`TransformMapperWithExtraArgs` (#530) · c9d11e49
      Matt Smith authored
      * add clone_for_callee to CopyMapperWithExtraArgs
      
      * add TransformMapper/TransformMapperWithExtraArgs
      
      * make CopyMapper/CopyMapperWithExtraArgs inherit from TransformMapper/TransformMapperWithExtraArgs
      
      * expand on purpose of TransformMapper in docstring
      c9d11e49
  16. Aug 01, 2024
  17. Jul 31, 2024
  18. Jul 30, 2024
    • nkoskelo's avatar
      Remove index to access descr (#528) · 0030ec2e
      nkoskelo authored
      
      
      * Remove the index_access_descr from Einsum object.
      
      * Ruff corrections.
      
      * Make the index_to_access_descriptor a cached property that will automatically build a dictionary for strings to access descriptor. Note that this may not be the exact same string as what the user passed in pt.einsum, but will be equivalent.
      
      * Add a comment on the new cached property.
      
      * Fixing comments made by ruff.
      
      * Remove the cached property. Add in a warning to users requesting a subscript string.
      
      * Remove duplicated code in generating a einsum string. The numpy code generator returned a string which contained spaces after the punctuation. It now no longer does.
      
      * Numpy code generator seems to be dependent on the spaces after the punctuation. So, I am adding those back in.
      
      * Deprecate the old function get_einsum_subscript_str, in favor of get_einsum_specification. Update the code to use the new function.
      
      * Visualization needed to be updated as well.
      
      * Update pytato/utils.py
      
      Co-authored-by: default avatarAndreas Klöckner <inform@tiker.net>
      
      * Update pytato/utils.py
      
      Co-authored-by: default avatarAndreas Klöckner <inform@tiker.net>
      
      * Updates target.
      
      * Update the documentation to be more clear.
      
      * Fixed a typo.
      
      * Remove excess assert statement.
      
      * Ensure there is a unique error message for arguments of string type since we are removing that functionality.
      
      ---------
      
      Co-authored-by: default avatarAndreas Klöckner <inform@tiker.net>
      0030ec2e
    • Matt Smith's avatar
      More fixes for functions (#503) · a8793a9e
      Matt Smith authored
      * add missing *args, **kwargs in WalkMapper.map_call
      
      * memoize clone_for_callee
      
      * remove default CombineMapper map_call implementation
      
      * don't memoize map_function_definition in cached walk mappers
      
      doesn't make sense, since it doesn't return anything
      
      * support calls in InputGatherer
      
      * make NamedCallResult compatible with attrs cache_hash=True
      
      * enable cache_hash on FunctionDefinition
      
      * enable calls in DirectPredecessorsGetter
      
      * memoize Call creation
      
      * make NamedCallResult.call a property
      
      * remove redundant NamedCallResult.name (already defined in NamedArray)
      
      * memoize NamedCallResult creation
      
      * fix docstring
      
      * remove non-argument placeholder check
      
      now done in arraycontext
      
      * fix equality for FunctionDefinition
      
      * add FIXME
      
      * attempt to fix doc warning
      
      * don't construct NamedCallResult directly
      
      * fix mapper method name in UsersCollector
      
      * add FIXME
      
      * Revert "add FIXME"
      
      This reverts commit 72bf01daf4757c72560c5eaf937377b57ce6b07d.
      
      * Revert "remove non-argument placeholder check"
      
      This reverts commit 73478bc4ac16877f946ce868317d9d1d10fb2ca6.
      
      * add some more missing *args, **kwargs to WalkMapper
      
      * remove some unnecessary *args, **kwargs
      
      * add get_func_def_cache_key to walk mappers to correctly handle function caching when extra arguments are present
      
      * undo memoizing Call creation
      
      * don't use regular dict for function call results
      
      * fix type annotation for function result
      
      * undo memoizing clone_for_callee
      
      doesn't avoid retraversal when the same function is encountered inside the bodies of two different
      functions
      
      * add SizeParamGatherer.map_call
      
      default map_call implementation was removed from CombineMapper, so it needs to be here
      
      * Revert "add get_func_def_cache_key to walk mappers to correctly handle function caching when extra arguments are present"
      
      This reverts commit 45eb68d54d6b0e74776fa9bde8d41c7f798b8c49.
      
      * Revert "don't memoize map_function_definition in cached walk mappers"
      
      This reverts commit c0e70cdc8821ae7b14c31acf38e996cdf6bd5896.
      a8793a9e
  19. Jul 23, 2024
  20. Jul 22, 2024
  21. Jul 19, 2024
  22. Jul 18, 2024
Loading