|
TRIQS/nda 2.0.0
Multi-dimensional array library for C++
|
#include "../blas/tools.hpp"#include "../exceptions.hpp"#include "../mem/address_space.hpp"#include "../traits.hpp"#include <algorithm>#include <cmath>#include <concepts>#include <cstdint>#include <string_view>#include <type_traits>#include <utility>Provides various traits and utilities for the tensor interface.
Definition in file tools.hpp.
Go to the source code of this file.
Classes | |
| struct | nda::tensor::tensor_view< T > |
| A type-erased, non-owning view of an nda::MemoryArray or a conjugate lazy expression. More... | |
Typedefs | |
| template<typename T> | |
| using | nda::tensor::const_tensor_view = tensor_view<const T> |
| Alias for a tensor_view with const value type. | |
| template<BlasArrayOrConj A> | |
| using | nda::tensor::data_ptr_t = decltype(get_array(std::declval<A>()).data()) |
| Data pointer type of an nda::blas_lapack::BlasArrayOrConj. | |
Enumerations | |
| enum class | nda::tensor::binary_op : std::uint8_t |
| Binary operations for tensor operations. More... | |
| enum class | nda::tensor::unary_op : std::uint8_t |
| Unary element-wise operations for tensor operations. More... | |
Functions | |
| template<int R> requires (R >= 0 && R <= 26) | |
| std::string_view | nda::tensor::default_index () |
| Generate a default index string ("abc...") of a given length. | |
| void | nda::tensor::require_equal_indices (std::string_view idx_a, std::string_view idx_b, int rank, std::string_view op_name) |
| Check if two index strings are equal and have a specified length. | |