nwchemex-tensorwrapper 0.0.107__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. nwchemex_tensorwrapper-0.0.107/.clang-format +110 -0
  2. nwchemex_tensorwrapper-0.0.107/.github/enable_sigma.cmake +1 -0
  3. nwchemex_tensorwrapper-0.0.107/.github/workflows/merge.yaml +79 -0
  4. nwchemex_tensorwrapper-0.0.107/.github/workflows/nightly.yaml +39 -0
  5. nwchemex_tensorwrapper-0.0.107/.github/workflows/pull_request.yaml +44 -0
  6. nwchemex_tensorwrapper-0.0.107/.gitignore +56 -0
  7. nwchemex_tensorwrapper-0.0.107/.licenserc.yaml +31 -0
  8. nwchemex_tensorwrapper-0.0.107/CMakeLists.txt +81 -0
  9. nwchemex_tensorwrapper-0.0.107/LICENSE +177 -0
  10. nwchemex_tensorwrapper-0.0.107/PKG-INFO +15 -0
  11. nwchemex_tensorwrapper-0.0.107/README.md +19 -0
  12. nwchemex_tensorwrapper-0.0.107/cmake/FindcuTENSOR.cmake +135 -0
  13. nwchemex_tensorwrapper-0.0.107/cmake/get_nwx_cmake.cmake +79 -0
  14. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/buffer/buffer.hpp +24 -0
  15. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/buffer/buffer_base.hpp +179 -0
  16. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/buffer/buffer_base_common.hpp +161 -0
  17. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/buffer/buffer_fwd.hpp +44 -0
  18. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/buffer/buffer_view_base.hpp +213 -0
  19. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/buffer/contiguous.hpp +434 -0
  20. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/buffer/detail_/buffer_view_base_pimpl.hpp +48 -0
  21. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/buffer/local.hpp +58 -0
  22. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/buffer/replicated.hpp +50 -0
  23. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/buffer/replicated_common.hpp +88 -0
  24. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/buffer/replicated_view.hpp +188 -0
  25. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/concepts/floating_point.hpp +26 -0
  26. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/concepts/has_begin_end.hpp +28 -0
  27. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/detail_/detail_.hpp +23 -0
  28. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/detail_/dsl_base.hpp +305 -0
  29. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/detail_/dsl_base.ipp +102 -0
  30. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/detail_/integer_utilities.hpp +65 -0
  31. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/detail_/polymorphic_base.hpp +259 -0
  32. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/detail_/unique_ptr_utilities.hpp +82 -0
  33. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/detail_/view_traits.hpp +61 -0
  34. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/diis/diis.hpp +107 -0
  35. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/dsl/dsl.hpp +20 -0
  36. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/dsl/dsl_forward.hpp +26 -0
  37. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/dsl/dummy_indices.hpp +525 -0
  38. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/dsl/labeled.hpp +358 -0
  39. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/dsl/pairwise_parser.hpp +160 -0
  40. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/forward_declarations.hpp +31 -0
  41. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/generate/add_noise.hpp +88 -0
  42. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/generate/generate.hpp +31 -0
  43. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/generate/generate_eigen_system.hpp +84 -0
  44. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/generate/generate_eigenvalues.hpp +72 -0
  45. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/generate/generate_utils.hpp +103 -0
  46. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/generate/identity_matrix.hpp +54 -0
  47. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/generate/random_orthogonal_matrix.hpp +64 -0
  48. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/interfaces/sliceable.hpp +166 -0
  49. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/layout/layout.hpp +22 -0
  50. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/layout/layout_base.hpp +323 -0
  51. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/layout/layout_common.hpp +174 -0
  52. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/layout/layout_fwd.hpp +29 -0
  53. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/layout/logical.hpp +70 -0
  54. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/layout/physical.hpp +69 -0
  55. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/operations/approximately_equal.hpp +43 -0
  56. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/operations/norm.hpp +33 -0
  57. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/operations/operations.hpp +23 -0
  58. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/operations/power.hpp +24 -0
  59. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/shape/shape.hpp +23 -0
  60. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/shape/shape_base.hpp +169 -0
  61. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/shape/shape_fwd.hpp +37 -0
  62. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/shape/smooth.hpp +228 -0
  63. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/shape/smooth_common.hpp +216 -0
  64. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/shape/smooth_view.hpp +240 -0
  65. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/sparsity/pattern.hpp +278 -0
  66. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/sparsity/sparsity.hpp +23 -0
  67. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/sparsity/sparsity_fwd.hpp +23 -0
  68. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/symmetry/group.hpp +471 -0
  69. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/symmetry/operation.hpp +73 -0
  70. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/symmetry/permutation.hpp +302 -0
  71. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/symmetry/symmetry.hpp +25 -0
  72. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/symmetry/symmetry_fwd.hpp +25 -0
  73. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/tensor/detail_/tensor_input.hpp +242 -0
  74. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/tensor/tensor.hpp +18 -0
  75. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/tensor/tensor_class.hpp +424 -0
  76. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/tensorwrapper.hpp +33 -0
  77. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/types/buffer_traits.hpp +115 -0
  78. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/types/class_traits.hpp +34 -0
  79. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/types/common_types.hpp +35 -0
  80. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/types/floating_point.hpp +269 -0
  81. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/types/il_traits.hpp +36 -0
  82. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/types/layout_traits.hpp +34 -0
  83. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/types/preserve_const.hpp +29 -0
  84. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/types/shape_traits.hpp +80 -0
  85. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/types/sparsity_traits.hpp +30 -0
  86. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/types/symmetry_traits.hpp +29 -0
  87. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/types/types.hpp +27 -0
  88. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/utilities/block_diagonal_matrix.hpp +32 -0
  89. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/utilities/diagonal_matrix.hpp +24 -0
  90. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/utilities/make_tensor.hpp +37 -0
  91. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/utilities/to_json.hpp +43 -0
  92. nwchemex_tensorwrapper-0.0.107/cxx/include/tensorwrapper/utilities/utilities.hpp +24 -0
  93. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/backends/backends.hpp +19 -0
  94. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/backends/cutensor/cuda_tensor.cpp +74 -0
  95. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/backends/cutensor/cuda_tensor.cu +255 -0
  96. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/backends/cutensor/cuda_tensor.cuh +44 -0
  97. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/backends/cutensor/cuda_tensor.hpp +79 -0
  98. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/backends/cutensor/cutensor_traits.cuh +41 -0
  99. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/backends/eigen/eigen_tensor.hpp +223 -0
  100. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/backends/eigen/eigen_tensor_impl.cpp +318 -0
  101. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/backends/eigen/eigen_tensor_impl.hpp +176 -0
  102. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/buffer/buffer_base.cpp +82 -0
  103. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/buffer/contiguous.cpp +337 -0
  104. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/buffer/contraction_planner.hpp +130 -0
  105. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/buffer/detail_/binary_operation_visitor.hpp +163 -0
  106. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/buffer/detail_/hash_utilities.hpp +126 -0
  107. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/buffer/detail_/replicated_view_pimpl.hpp +103 -0
  108. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/buffer/detail_/slice_pimpl.hpp +149 -0
  109. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/buffer/detail_/unary_operation_visitor.hpp +176 -0
  110. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/buffer/einsum_planner.hpp +100 -0
  111. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/buffer/replicated_view.cpp +129 -0
  112. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/diis/diis.cpp +105 -0
  113. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/dsl/pairwise_parser.cpp +15 -0
  114. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/export_tensorwrapper.cpp +27 -0
  115. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/export_tensorwrapper.hpp +39 -0
  116. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/generate/add_noise.cpp +88 -0
  117. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/generate/generate_eigen_system.cpp +59 -0
  118. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/generate/generate_eigenvalues.cpp +217 -0
  119. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/generate/random_orthogonal_matrix.cpp +71 -0
  120. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/layout/converter.hpp +37 -0
  121. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/layout/layout_base.cpp +93 -0
  122. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/operations/approximately_equal.cpp +24 -0
  123. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/operations/norm.cpp +36 -0
  124. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/operations/power.cpp +50 -0
  125. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/shape/detail_/smooth_alias.hpp +86 -0
  126. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/shape/detail_/smooth_view_pimpl.hpp +91 -0
  127. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/shape/shape_from_labels.hpp +105 -0
  128. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/shape/smooth.cpp +89 -0
  129. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/shape/smooth_view.cpp +103 -0
  130. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/sparsity/pattern.cpp +46 -0
  131. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/symmetry/group.cpp +61 -0
  132. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/symmetry/permutation.cpp +149 -0
  133. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/tensor/detail_/il_utils.hpp +60 -0
  134. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/tensor/detail_/tensor_factory.cpp +199 -0
  135. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/tensor/detail_/tensor_factory.hpp +216 -0
  136. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/tensor/detail_/tensor_pimpl.hpp +124 -0
  137. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/tensor/export_tensor.cpp +135 -0
  138. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/tensor/export_tensor.hpp +24 -0
  139. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/tensor/tensor_class.cpp +221 -0
  140. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/types/floating_point.cpp +25 -0
  141. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/utilities/block_diagonal_matrix.cpp +111 -0
  142. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/utilities/diagonal_matrix.cpp +48 -0
  143. nwchemex_tensorwrapper-0.0.107/cxx/src/tensorwrapper/utilities/to_json.cpp +53 -0
  144. nwchemex_tensorwrapper-0.0.107/docs/Makefile +20 -0
  145. nwchemex_tensorwrapper-0.0.107/docs/README.md +18 -0
  146. nwchemex_tensorwrapper-0.0.107/docs/requirements.txt +4 -0
  147. nwchemex_tensorwrapper-0.0.107/docs/source/allocation.png +0 -0
  148. nwchemex_tensorwrapper-0.0.107/docs/source/assets/logo.png +0 -0
  149. nwchemex_tensorwrapper-0.0.107/docs/source/assets/logo_candybar.png +0 -0
  150. nwchemex_tensorwrapper-0.0.107/docs/source/background/assets/logical_v_physical.png +0 -0
  151. nwchemex_tensorwrapper-0.0.107/docs/source/background/assets/matrix_v_vov.png +0 -0
  152. nwchemex_tensorwrapper-0.0.107/docs/source/background/assets/rank0_v_rank1_v_rank2_v_rank3.png +0 -0
  153. nwchemex_tensorwrapper-0.0.107/docs/source/background/einstein_summation_convention.rst +220 -0
  154. nwchemex_tensorwrapper-0.0.107/docs/source/background/index.rst +30 -0
  155. nwchemex_tensorwrapper-0.0.107/docs/source/background/key_features.rst +92 -0
  156. nwchemex_tensorwrapper-0.0.107/docs/source/background/logical_v_physical.rst +87 -0
  157. nwchemex_tensorwrapper-0.0.107/docs/source/background/nested_tensors.rst +114 -0
  158. nwchemex_tensorwrapper-0.0.107/docs/source/background/other_choices.rst +101 -0
  159. nwchemex_tensorwrapper-0.0.107/docs/source/background/permutation.rst +100 -0
  160. nwchemex_tensorwrapper-0.0.107/docs/source/background/terminology.rst +289 -0
  161. nwchemex_tensorwrapper-0.0.107/docs/source/bibliography/background.bib +13 -0
  162. nwchemex_tensorwrapper-0.0.107/docs/source/bibliography/bibliography.rst +19 -0
  163. nwchemex_tensorwrapper-0.0.107/docs/source/bibliography/other_libraries.bib +11 -0
  164. nwchemex_tensorwrapper-0.0.107/docs/source/conf.py +176 -0
  165. nwchemex_tensorwrapper-0.0.107/docs/source/developer/adding_operations_to_contiguous.rst +66 -0
  166. nwchemex_tensorwrapper-0.0.107/docs/source/developer/assets/how_contiguous_works.png +0 -0
  167. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/allocator.rst +239 -0
  168. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/assets/allocator.png +0 -0
  169. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/assets/architecture.png +0 -0
  170. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/assets/buffer.png +0 -0
  171. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/assets/complicated_graphs.png +0 -0
  172. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/assets/composing_sparsity.png +0 -0
  173. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/assets/expressions.png +0 -0
  174. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/assets/layout.png +0 -0
  175. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/assets/narity.png +0 -0
  176. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/assets/opgraph.png +0 -0
  177. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/assets/opgraph_basic_ops.png +0 -0
  178. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/assets/overview.png +0 -0
  179. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/assets/shape.png +0 -0
  180. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/assets/shape_design_v2.png +0 -0
  181. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/assets/smooth_v_jagged.png +0 -0
  182. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/assets/sparsity.png +0 -0
  183. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/assets/symmetry.png +0 -0
  184. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/assets/tensor_wrapper.png +0 -0
  185. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/assets/upper_v_lower.png +0 -0
  186. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/assets/workflows.png +0 -0
  187. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/buffer.rst +353 -0
  188. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/expression.rst +617 -0
  189. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/index.rst +41 -0
  190. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/layout.rst +228 -0
  191. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/motivation.rst +102 -0
  192. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/op_graph.rst +661 -0
  193. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/overview.rst +400 -0
  194. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/shape.rst +185 -0
  195. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/shapev1.rst +624 -0
  196. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/sparse_maps.rst +21 -0
  197. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/sparsity.rst +533 -0
  198. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/symmetry.rst +408 -0
  199. nwchemex_tensorwrapper-0.0.107/docs/source/developer/design/tensor_wrapper.rst +286 -0
  200. nwchemex_tensorwrapper-0.0.107/docs/source/developer/index.rst +24 -0
  201. nwchemex_tensorwrapper-0.0.107/docs/source/index.rst +27 -0
  202. nwchemex_tensorwrapper-0.0.107/docs/source/overall_design.png +0 -0
  203. nwchemex_tensorwrapper-0.0.107/docs/source/reshape.png +0 -0
  204. nwchemex_tensorwrapper-0.0.107/docs/source/sparse_maps/background.rst +26 -0
  205. nwchemex_tensorwrapper-0.0.107/docs/source/sparse_maps/design.rst +58 -0
  206. nwchemex_tensorwrapper-0.0.107/docs/source/sparse_maps/from_sparse_map.rst +98 -0
  207. nwchemex_tensorwrapper-0.0.107/docs/source/sparse_maps/index.rst +25 -0
  208. nwchemex_tensorwrapper-0.0.107/pyproject.toml +56 -0
  209. nwchemex_tensorwrapper-0.0.107/requirements.txt +1 -0
  210. nwchemex_tensorwrapper-0.0.107/tests/cxx/acceptance_tests/tensorwrapper/acceptance_testing.hpp +22 -0
  211. nwchemex_tensorwrapper-0.0.107/tests/cxx/acceptance_tests/tensorwrapper/contractions.cpp +60 -0
  212. nwchemex_tensorwrapper-0.0.107/tests/cxx/acceptance_tests/tensorwrapper/contractions.py +51 -0
  213. nwchemex_tensorwrapper-0.0.107/tests/cxx/acceptance_tests/tensorwrapper/test_main.cpp +27 -0
  214. nwchemex_tensorwrapper-0.0.107/tests/cxx/performance_tests/tensorwrapper/contraction.cpp +37 -0
  215. nwchemex_tensorwrapper-0.0.107/tests/cxx/performance_tests/tensorwrapper/performance_testing.hpp +22 -0
  216. nwchemex_tensorwrapper-0.0.107/tests/cxx/performance_tests/tensorwrapper/test_main.cpp +27 -0
  217. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/backends/cutensor/cuda_tensor.cpp +121 -0
  218. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/backends/eigen/eigen_tensor_impl.cpp +393 -0
  219. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/backends/testing/addition_assignment.hpp +72 -0
  220. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/backends/testing/contraction_assignment.hpp +258 -0
  221. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/backends/testing/elementwise_op.hpp +317 -0
  222. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/backends/testing/hadamard_assignment.hpp +72 -0
  223. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/backends/testing/permute_assignment.hpp +67 -0
  224. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/backends/testing/scalar_multiplication.hpp +83 -0
  225. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/backends/testing/subtraction_assignment.hpp +72 -0
  226. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/backends/testing/unary_op.hpp +221 -0
  227. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/buffer/buffer_base_common.cpp +114 -0
  228. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/buffer/buffer_view_base.cpp +136 -0
  229. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/buffer/contiguous.cpp +909 -0
  230. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/buffer/contraction_planner.cpp +249 -0
  231. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/buffer/detail_/binary_operation_visitor.cpp +215 -0
  232. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/buffer/detail_/hash_utilities.cpp +87 -0
  233. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/buffer/detail_/slice_pimpl.cpp +85 -0
  234. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/buffer/detail_/unary_operation_visitor.cpp +211 -0
  235. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/buffer/einsum_planner.cpp +553 -0
  236. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/buffer/replicated_view.cpp +142 -0
  237. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/detail_/dsl_base.cpp +193 -0
  238. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/detail_/unique_ptr_utilities.cpp +68 -0
  239. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/detail_/view_traits.cpp +38 -0
  240. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/diis/diis.cpp +104 -0
  241. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/dsl/dsl.cpp +138 -0
  242. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/dsl/dummy_indices.cpp +329 -0
  243. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/dsl/labeled.cpp +145 -0
  244. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/dsl/pairwise_parser.cpp +181 -0
  245. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/generate/add_noise.cpp +136 -0
  246. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/generate/generate_eigen_system.cpp +147 -0
  247. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/generate/generate_eigenvalues.cpp +123 -0
  248. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/generate/generate_utils.cpp +35 -0
  249. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/generate/identity_matrix.cpp +49 -0
  250. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/generate/random_orthogonal_matrix.cpp +68 -0
  251. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/layout/layout_base.cpp +221 -0
  252. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/layout/layout_common.cpp +92 -0
  253. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/layout/logical.cpp +76 -0
  254. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/layout/physical.cpp +76 -0
  255. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/operations/approximately_equal.cpp +123 -0
  256. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/operations/norm.cpp +67 -0
  257. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/operations/power.cpp +53 -0
  258. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/shape/detail_/smooth_alias.cpp +60 -0
  259. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/shape/detail_/smooth_view_pimpl.cpp +56 -0
  260. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/shape/shape_from_labels.cpp +68 -0
  261. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/shape/smooth.cpp +319 -0
  262. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/shape/smooth_common.cpp +230 -0
  263. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/shape/smooth_view.cpp +131 -0
  264. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/sparsity/pattern.cpp +164 -0
  265. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/symmetry/group.cpp +289 -0
  266. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/symmetry/permutation.cpp +241 -0
  267. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/tensor/detail_/tensor_factory.cpp +203 -0
  268. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/tensor/detail_/tensor_input.cpp +280 -0
  269. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/tensor/detail_/tensor_pimpl.cpp +102 -0
  270. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/tensor/detail_/unwrap_il.cpp +57 -0
  271. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/tensor/tensor_class.cpp +292 -0
  272. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/test_main.cpp +27 -0
  273. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/testing/dsl.hpp +78 -0
  274. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/testing/eigen_buffers.hpp +87 -0
  275. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/testing/helpers.hpp +141 -0
  276. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/testing/inputs.hpp +97 -0
  277. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/testing/layouts.hpp +75 -0
  278. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/testing/shapes.hpp +47 -0
  279. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/testing/testing.hpp +25 -0
  280. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/utilities/block_diagonal_matrix.cpp +86 -0
  281. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/utilities/diagonal_matrix.cpp +36 -0
  282. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/utilities/make_tensor.cpp +78 -0
  283. nwchemex_tensorwrapper-0.0.107/tests/cxx/unit_tests/tensorwrapper/utilities/to_json.cpp +57 -0
  284. nwchemex_tensorwrapper-0.0.107/tests/python/conftest.py +45 -0
  285. nwchemex_tensorwrapper-0.0.107/tests/python/unit_tests/export_test_tensorwrapper.cpp +39 -0
  286. nwchemex_tensorwrapper-0.0.107/tests/python/unit_tests/tensor/__init__.py +13 -0
  287. nwchemex_tensorwrapper-0.0.107/tests/python/unit_tests/tensor/test_tensor.py +60 -0
  288. nwchemex_tensorwrapper-0.0.107/tests/python/unit_tests/test_tensorwrapper.hpp +26 -0
  289. nwchemex_tensorwrapper-0.0.107/tests/python/unit_tests/test_tensorwrapper.py +32 -0
  290. nwchemex_tensorwrapper-0.0.107/version.txt +1 -0
@@ -0,0 +1,110 @@
1
+ # Copyright 2022 NWChemEx-Project
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ ---
16
+ Language: Cpp
17
+ # BasedOnStyle: Mozilla
18
+ AccessModifierOffset: -4
19
+ AlignAfterOpenBracket: Align
20
+ AlignConsecutiveAssignments: true
21
+ AlignConsecutiveDeclarations: false
22
+ AlignEscapedNewlines: Left
23
+ AlignOperands: true
24
+ AlignTrailingComments: true
25
+ AllowAllParametersOfDeclarationOnNextLine: true
26
+ AllowShortBlocksOnASingleLine: true
27
+ AllowShortCaseLabelsOnASingleLine: true
28
+ AllowShortFunctionsOnASingleLine: All
29
+ AllowShortIfStatementsOnASingleLine: true
30
+ AllowShortLoopsOnASingleLine: true
31
+ AlwaysBreakAfterDefinitionReturnType: false
32
+ AlwaysBreakAfterReturnType: None
33
+ AlwaysBreakBeforeMultilineStrings: false
34
+ AlwaysBreakTemplateDeclarations: true
35
+ BinPackArguments: true
36
+ BinPackParameters: true
37
+ BraceWrapping:
38
+ AfterClass: false
39
+ AfterControlStatement: false
40
+ AfterEnum: false
41
+ AfterFunction: false
42
+ AfterNamespace: false
43
+ AfterObjCDeclaration: false
44
+ AfterStruct: false
45
+ AfterUnion: false
46
+ BeforeCatch: false
47
+ BeforeElse: false
48
+ IndentBraces: false
49
+ BreakAfterJavaFieldAnnotations: false
50
+ BreakBeforeBinaryOperators: None
51
+ BreakBeforeBraces: Custom
52
+ BreakBeforeInheritanceComma: false
53
+ BreakBeforeTernaryOperators: false
54
+ BreakConstructorInitializers: AfterColon
55
+ BreakStringLiterals: true
56
+ ColumnLimit: 80
57
+ CommentPragmas: '^ IWYU pragma:'
58
+ CompactNamespaces: false
59
+ ConstructorInitializerAllOnOneLineOrOnePerLine: true
60
+ ConstructorInitializerIndentWidth: 2
61
+ ContinuationIndentWidth: 2
62
+ Cpp11BracedListStyle: true
63
+ DerivePointerAlignment: false
64
+ DisableFormat: false
65
+ ExperimentalAutoDetectBinPacking: false
66
+ FixNamespaceComments: true
67
+ ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
68
+ IncludeCategories:
69
+ - Regex: '^"'
70
+ Priority: 1
71
+ - Regex: '^<'
72
+ Priority: 2
73
+ IncludeIsMainRegex: '(Test)$'
74
+ IndentCaseLabels: true
75
+ IndentWidth: 4
76
+ IndentWrappedFunctionNames: false
77
+ JavaScriptQuotes: Leave
78
+ JavaScriptWrapImports: true
79
+ KeepEmptyLinesAtTheStartOfBlocks: false
80
+ MacroBlockBegin: ''
81
+ MacroBlockEnd: ''
82
+ MaxEmptyLinesToKeep: 1
83
+ NamespaceIndentation: None
84
+ ObjCBlockIndentWidth: 4
85
+ ObjCSpaceAfterProperty: true
86
+ ObjCSpaceBeforeProtocolList: false
87
+ PenaltyBreakBeforeFirstCallParameter: 19
88
+ PenaltyBreakComment: 300
89
+ PenaltyBreakFirstLessLess: 120
90
+ PenaltyBreakString: 1000
91
+ PenaltyExcessCharacter: 1000000
92
+ PenaltyReturnTypeOnItsOwnLine: 200
93
+ PointerAlignment: Left
94
+ ReflowComments: true
95
+ SortIncludes: true
96
+ SpaceAfterCStyleCast: false
97
+ SpaceAfterTemplateKeyword: false
98
+ SpaceBeforeAssignmentOperators: true
99
+ SpaceBeforeParens: Never
100
+ SpaceInEmptyParentheses: false
101
+ SpacesBeforeTrailingComments: 1
102
+ SpacesInAngles: false
103
+ SpacesInCStyleCastParentheses: false
104
+ SpacesInContainerLiterals: false
105
+ SpacesInParentheses: false
106
+ SpacesInSquareBrackets: false
107
+ Standard: Cpp11
108
+ TabWidth: 8
109
+ UseTab: Never
110
+ ...
@@ -0,0 +1 @@
1
+ set(ENABLE_SIGMA ON)
@@ -0,0 +1,79 @@
1
+ # Copyright 2023 NWChemEx-Project
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+
16
+ name: Merge Workflow
17
+
18
+ on:
19
+ push:
20
+ branches:
21
+ - master
22
+
23
+ jobs:
24
+ tag-commit:
25
+ uses: NWChemEx/.github/.github/workflows/tag.yaml@master
26
+ secrets: inherit
27
+
28
+ deploy_nwx_docs:
29
+ uses: NWChemEx/.github/.github/workflows/deploy_nwx_docs.yaml@master
30
+ with:
31
+ doc_target: "tensorwrapper_cxx_api"
32
+ secrets: inherit
33
+
34
+ platform_matrix:
35
+ uses: NWChemEx/.github/.github/workflows/platform_matrix.yaml@master
36
+
37
+ build_pypi_dist:
38
+ needs: [tag-commit, platform_matrix]
39
+ strategy:
40
+ fail-fast: false
41
+ matrix:
42
+ include: ${{ fromJSON(needs.platform_matrix.outputs.release_matrix) }}
43
+ runs-on: ${{ matrix.os }}
44
+ steps:
45
+ - name: Build PyPI Distribution
46
+ uses: NWChemEx/.github/.github/actions/build_pypi_dist@master
47
+ with:
48
+ cibw_build: ${{ matrix.cibw_build }}
49
+ build_sdist: ${{ matrix.os == 'ubuntu-latest' && 'true' || 'false' }}
50
+ needs_mpi: "true"
51
+ needs_boost: "true"
52
+
53
+ - name: Upload Distribution Artifact
54
+ uses: actions/upload-artifact@v4
55
+ with:
56
+ name: dist-${{ matrix.os }}
57
+ path: dist/
58
+
59
+ # A separate, ubuntu-only publish job (rather than a publish step per
60
+ # build_pypi_dist leg) because pypa/gh-action-pypi-publish only runs on
61
+ # Linux, and because PyPI trusted publishing does not support reusable
62
+ # workflows (this job must be defined directly here, not delegated).
63
+ deploy_to_pypi:
64
+ needs: build_pypi_dist
65
+ runs-on: ubuntu-latest
66
+ permissions:
67
+ id-token: write
68
+ steps:
69
+ - name: Download All Distributions
70
+ uses: actions/download-artifact@v4
71
+ with:
72
+ pattern: dist-*
73
+ path: dist
74
+ merge-multiple: true
75
+
76
+ - name: Publish to PyPI
77
+ uses: pypa/gh-action-pypi-publish@release/v1
78
+ with:
79
+ packages-dir: dist/
@@ -0,0 +1,39 @@
1
+ # Copyright 2025 NWChemEx-Project
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+
16
+ name: Nightly Workflow
17
+ # Re-runs the same build/test jobs pull_request.yaml runs, on a schedule, to
18
+ # catch breakage that originates outside the repo (upstream dependency
19
+ # releases, refreshed GitHub runner images) rather than from a code change.
20
+ # Keep the job list below in sync with pull_request.yaml.
21
+
22
+ on:
23
+ schedule:
24
+ - cron: "0 6 * * *" # Every day at 06:00 UTC (00:00 CST)
25
+
26
+ jobs:
27
+ test_cmake_build:
28
+ uses: NWChemEx/.github/.github/workflows/test_nwx_cmake_build.yaml@master
29
+ with:
30
+ run_python_tests: "true"
31
+
32
+ test_cmake_build_with_sigma:
33
+ uses: NWChemEx/.github/.github/workflows/test_nwx_cmake_build.yaml@master
34
+ with:
35
+ run_python_tests: "true"
36
+ cmake_opts: "-DENABLE_SIGMA=ON"
37
+
38
+ test_pip_build:
39
+ uses: NWChemEx/.github/.github/workflows/test_nwx_pip_build.yaml@master
@@ -0,0 +1,44 @@
1
+ # Copyright 2023 NWChemEx-Project
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+
16
+ name: Pull Request Workflow
17
+
18
+ on:
19
+ pull_request:
20
+ branches:
21
+ - master
22
+
23
+ jobs:
24
+ check_formatting:
25
+ uses: NWChemEx/.github/.github/workflows/check_formatting.yaml@master
26
+
27
+ test_nwx_docs:
28
+ uses: NWChemEx/.github/.github/workflows/test_nwx_docs.yaml@master
29
+ with:
30
+ doc_target: "tensorwrapper_cxx_api"
31
+
32
+ test_cmake_build:
33
+ uses: NWChemEx/.github/.github/workflows/test_nwx_cmake_build.yaml@master
34
+ with:
35
+ run_python_tests: "true"
36
+
37
+ test_cmake_build_with_sigma:
38
+ uses: NWChemEx/.github/.github/workflows/test_nwx_cmake_build.yaml@master
39
+ with:
40
+ run_python_tests: "true"
41
+ cmake_opts: "-DENABLE_SIGMA=ON"
42
+
43
+ test_pip_build:
44
+ uses: NWChemEx/.github/.github/workflows/test_nwx_pip_build.yaml@master
@@ -0,0 +1,56 @@
1
+ # Copyright 2022 NWChemEx-Project
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # These are extensions commonly used to denote temporary files
16
+ *.tmp
17
+ *.autosave
18
+ *.bak
19
+
20
+ # These are directories used by IDEs for storing settings
21
+ .idea/
22
+ .vscode/
23
+ .cache/
24
+ .cursor/
25
+
26
+ # These are common Python virtual enviornment directory names
27
+ venv/
28
+ docs/venv/
29
+
30
+ # This is where Jupyter/IPython store backup files
31
+ .ipynb_checkpoints/
32
+
33
+ # Byte-compiled Python
34
+ __pycache__/
35
+
36
+ # These are common build directory names
37
+ build*/
38
+ docs/build
39
+ docs/source/_build
40
+ docs/doxyoutput
41
+ docs/source/api
42
+ *-build-*/
43
+ _build/
44
+ Debug/
45
+ Release/
46
+ install/
47
+ # Users commonly store their specific CMake settings in a toolchain file
48
+ toolchain.cmake
49
+
50
+ .devcontainers/
51
+
52
+ # These are MacOS files
53
+ .DS_Store
54
+
55
+ # Automatically installed in dev mode
56
+ .pre-commit-config.yaml
@@ -0,0 +1,31 @@
1
+ # Copyright 2021 NWChemEx-Project
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+ header:
16
+ license:
17
+ spdx-id: Apache-2.0
18
+ copyright-owner: NWChemEx-Project
19
+
20
+ paths-ignore:
21
+ - .github/
22
+ - docs/Makefile
23
+ - LICENSE
24
+ - cmake/config.hpp.in
25
+ - cmake/FindcuTENSOR.cmake
26
+ - docs/requirements.txt
27
+ - docs/source/bibliography/*.bib
28
+ - version.txt
29
+ - build/
30
+
31
+ comment: never
@@ -0,0 +1,81 @@
1
+ # Copyright 2026 NWChemEx-Project
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ cmake_minimum_required(VERSION 3.14)
16
+
17
+ # Downloads common CMake modules used throughout NWChemEx. Included before
18
+ # project() so nwx_set_version() is available to compute the version.
19
+ include(cmake/get_nwx_cmake.cmake)
20
+
21
+ # Version from scikit-build-core (wheels/sdists) or the latest git tag.
22
+ include(nwx_set_version)
23
+ nwx_set_version(tw_version "${CMAKE_CURRENT_LIST_DIR}")
24
+ project(tensorwrapper VERSION "${tw_version}" LANGUAGES CXX)
25
+
26
+ include(disable_in_source_builds)
27
+ include(set_default_nwx_options)
28
+ option(ENABLE_CUTENSOR "Enable cuTENSOR GPU backend" OFF)
29
+
30
+ # Documentation target
31
+ include(nwx_cxx_api_docs)
32
+ nwx_cxx_api_docs("cxx/include" "cxx/src")
33
+
34
+ # Dependencies
35
+ include(get_dependencies)
36
+ get_dependencies(utilities parallelzone wtf eigen boost)
37
+
38
+ # TODO: ENABLE_CUTENSOR handling
39
+
40
+ # Build the library
41
+ include(nwx_library)
42
+ nwx_library(${PROJECT_NAME} "cxx/include" "cxx/src"
43
+ utilities parallelzone wtf
44
+ PUBLIC eigen boost)
45
+
46
+ # Generated config headers (e.g. from configure_file) live in binary dir
47
+ target_include_directories(${PROJECT_NAME} PUBLIC
48
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)
49
+
50
+ # Python module
51
+ include(nwx_python_module)
52
+ nwx_python_module(${PROJECT_NAME} "cxx/src")
53
+
54
+ # C++ tests
55
+ include(catch2_tests_from_dir)
56
+ catch2_tests_from_dir(
57
+ "unit_test_${PROJECT_NAME}"
58
+ "tests/cxx/unit_tests/${PROJECT_NAME}"
59
+ ${PROJECT_NAME}
60
+ PRIVATE_INCLUDES cxx/src
61
+ )
62
+ catch2_tests_from_dir(
63
+ "test_acceptance_${PROJECT_NAME}"
64
+ "tests/cxx/acceptance_tests/${PROJECT_NAME}"
65
+ ${PROJECT_NAME}
66
+ PRIVATE_INCLUDES cxx/src
67
+ )
68
+ catch2_tests_from_dir(
69
+ "test_performance_${PROJECT_NAME}"
70
+ "tests/cxx/performance_tests/${PROJECT_NAME}"
71
+ ${PROJECT_NAME}
72
+ PRIVATE_INCLUDES cxx/src
73
+ )
74
+
75
+ # py_test_tensorwrapper: a pybind11 module exposing C++ test fixtures to
76
+ # tests/python/unit_tests/*.py (e.g. tensor/test_tensor.py imports
77
+ # py_test_tensorwrapper.testing). Not part of the installed package --
78
+ # test-only, built in place alongside the other test binaries.
79
+ if(BUILD_PYBIND11_BINDINGS AND BUILD_TESTING)
80
+ nwx_python_module(py_test_tensorwrapper "tests/python/unit_tests" NO_INSTALL)
81
+ endif()
@@ -0,0 +1,177 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,15 @@
1
+ Metadata-Version: 2.2
2
+ Name: nwchemex-tensorwrapper
3
+ Version: 0.0.107
4
+ Summary: Tensor abstraction library for the NWChemEx ecosystem
5
+ License: Apache-2.0
6
+ Requires-Python: >=3.8
7
+ Requires-Dist: pybind11
8
+ Requires-Dist: nwchemex-nwxcmake>=0.1.0
9
+ Requires-Dist: nwchemex-utilities>=0.1.45
10
+ Requires-Dist: nwchemex-parallelzone>=0.1.43
11
+ Provides-Extra: dev
12
+ Requires-Dist: pytest; extra == "dev"
13
+ Requires-Dist: pre-commit; extra == "dev"
14
+ Requires-Dist: numpy; extra == "dev"
15
+
@@ -0,0 +1,19 @@
1
+ <!--
2
+ ~ Copyright 2022 NWChemEx-Project
3
+ ~
4
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
5
+ ~ you may not use this file except in compliance with the License.
6
+ ~ You may obtain a copy of the License at
7
+ ~
8
+ ~ http://www.apache.org/licenses/LICENSE-2.0
9
+ ~
10
+ ~ Unless required by applicable law or agreed to in writing, software
11
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
12
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ ~ See the License for the specific language governing permissions and
14
+ ~ limitations under the License.
15
+ -->
16
+
17
+ # TensorWrapper
18
+
19
+ [![Nightly Workflow](https://github.com/NWChemEx/TensorWrapper/actions/workflows/nightly.yaml/badge.svg)](https://github.com/NWChemEx/TensorWrapper/actions/workflows/nightly.yaml)