mirror of
https://github.com/boostorg/ublas.git
synced 2026-01-28 07:42:14 +00:00
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.
75 lines
2.3 KiB
Plaintext
75 lines
2.3 KiB
Plaintext
# Boost.uBLAS
|
|
#
|
|
# Copyright (c) 2018, Cem Bassoy, cem.bassoy@gmail.com
|
|
# Copyright (c) 2019, Amit Singh, amitsingh19975@gmail.com
|
|
#
|
|
# Distributed under the Boost Software License, Version 1.0. (See
|
|
# accompanying file LICENSE_1_0.txt or copy at
|
|
# http://www.boost.org/LICENSE_1_0.txt)
|
|
#
|
|
# The authors gratefully acknowledge the support of
|
|
# Google and Fraunhofer IOSB, Ettlingen, Germany
|
|
#
|
|
|
|
import ../../../../config/checks/config : requires ;
|
|
|
|
project boost/ublas/test/tensor
|
|
: requirements
|
|
<toolset>gcc:<cxxflags>"-Wall -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-but-set-variable"
|
|
<toolset>clang:<cxxflags>"-Wall -Wno-unknown-pragmas -Wno-sign-compare"
|
|
[ requires cxx17_if_constexpr ]
|
|
;
|
|
|
|
alias unit_test_framework
|
|
: # sources
|
|
/boost//unit_test_framework
|
|
;
|
|
|
|
# make aliases explicit so the libraries will only be built when requested
|
|
explicit unit_test_framework ;
|
|
|
|
|
|
|
|
test-suite boost-ublas-tensor-test
|
|
:
|
|
[ run test_algorithms.cpp
|
|
test_einstein_notation.cpp
|
|
test_expression.cpp
|
|
test_expression_evaluation.cpp
|
|
test_extents_dynamic.cpp
|
|
test_extents_dynamic_rank_static.cpp
|
|
test_extents_functions.cpp
|
|
test_fixed_rank_expression_evaluation.cpp
|
|
test_fixed_rank_extents.cpp
|
|
test_fixed_rank_functions.cpp
|
|
test_fixed_rank_operators_arithmetic.cpp
|
|
test_fixed_rank_operators_comparison.cpp
|
|
test_fixed_rank_strides.cpp
|
|
test_fixed_rank_tensor.cpp
|
|
test_fixed_rank_tensor_matrix_vector.cpp
|
|
test_functions.cpp
|
|
test_multi_index.cpp
|
|
test_multi_index_utility.cpp
|
|
test_multiplication.cpp
|
|
test_operators_arithmetic.cpp
|
|
test_operators_comparison.cpp
|
|
test_static_expression_evaluation.cpp
|
|
test_static_extents.cpp
|
|
test_static_operators_arithmetic.cpp
|
|
test_static_operators_comparison.cpp
|
|
test_static_strides.cpp
|
|
test_static_tensor.cpp
|
|
test_static_tensor_matrix_vector.cpp
|
|
test_strides.cpp
|
|
test_tensor.cpp
|
|
test_tensor_matrix_vector.cpp
|
|
unit_test_framework
|
|
:
|
|
:
|
|
:
|
|
: test_tensor
|
|
:
|
|
#
|
|
]
|
|
;
|