2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-01-28 07:42:14 +00:00
Commit Graph

4 Commits

Author SHA1 Message Date
Cem Bassoy
231ba5f730 refactor(core): simplify and eliminate auxiliary tensor types (#115)
Auxiliary functions for extents and strides were using different
functions. Additionally, many tags were used to distinguish between
different tensor types. This patch simplifies interfaces of different
core functions and unifies functions that can process different types of
extent and stride types.
2021-09-09 11:34:14 +02:00
amitsingh19975
799ef707a5 Introducing a new and versatile way to create the tensor interface. (#90)
* improving the tensor design using tensor engine to support any configuration

* fixing and refactoring extents and strides

* making extents and strides class declarations contestants

* syncing with develop branch

* fixing examples

* fixing type aliasing bug

* fixing clang-tidy errors

* adding move assignment operator

* fixing clang-tidy errors

* fixing clang-tidy errors

* Fix all clang-tidy warnings & Improve Review action (#92)

* Fix all clang-tidy warnings

* Update clangtidy_check.yml

* Do not run review for PR from forks

In order to run review from forks we need to create a Github bot that has full access to all forks and can perform review even from forks.

* Update clangtidy_review.yml

* Update clangtidy_review.yml

* improving the tensor design using tensor engine to support any configuration

* fixing and refactoring extents and strides

* making extents and strides class declarations contestants

* fixing examples

* fixing type aliasing bug

* fixing clang-tidy errors

* adding move assignment operator

* fixing clang-tidy errors

* fixing clang-tidy errors

* Fix all clang-tidy warnings & Improve Review action (#92)

* Fix all clang-tidy warnings

* Update clangtidy_check.yml

* Do not run review for PR from forks

In order to run review from forks we need to create a Github bot that has full access to all forks and can perform review even from forks.

* Update clangtidy_review.yml

* Update clangtidy_review.yml

* changing tensor engine APIs

* adding std::enable_if to tensor_core to remove redundant parameter for static_tensor

* fixing template name

* removing first_order and last_order form namespace ublas and moving to ublas::layout

* removing always_false

* improving strides construction for dynamic and fixed_rank

* refactoring code

* refactoring code and adding static checks

* Moving tensor_engine to it's own header file and removing static_product

* adding checking and fixing expression

* refactoring code

* refactoring static_extents_traits.hpp

* fixing static_assert in strides.hpp and adding inline and constexpr to the functions

* adding fixed rank example and making trans second argument template type

* removing rebind_storage and adding rebind_storage_size for static products

* refactoring directory and moving static_extents_traits.hpp into extents_functions.hpp with function implementation

* fixing github action

* fixing msvc compiler bug

* refactoring make_static_strides code

* fixing: removing push_front and push_back in static_strides.hpp

* fix for msvc 14.27, it is unable to treat basic_static_extents::at constexpr

* changing name from valid to is_valid for naming consistency

* moving extents_result_type_* functions inside the respective prod functions

* fixing broken license

* removing the unnecessary headers

* improving error and fixing error messages

Co-authored-by: Ashar <coder3101@users.noreply.github.com>
2020-12-10 14:28:54 +01:00
Cem Bassoy
6f823d183b bug in test/tensor/test_static_functions.cpp with memory leak fixed. (#85) 2020-06-23 14:59:51 +02:00
amitsingh19975
8938db5ce5 Decoupling the tensor into three tensor different tensor types (#81)
* decomposing tensor class into seperate modules according to the extents type

* stabilizing and updating test. Adding support for the operations b/w different types of tensor

* updating examples

* changing tabs to spaces

* added constexpr, removed resize from tensor and changed the array_type to container_type

* changing tag names and refactoring code

* adding and updating examples

* adding new line at the end of file

* refactoring code, fixing bugs and adding few new examples

* refactoring examples

* fixing gcc-7 issue where it is unable to use deduction guide when initilized

* adding constexpr and inline

* adding noexcept

* adding is_static_rank_v

* removing extents.hpp and decoupling test_extents and test_strides

* refactoring code and adding constexpr with [[nodiscard]] to the functions

* refactoring code.

* adding missing iterator header

* changing helper function name
2020-05-03 16:14:22 +02:00