TRIQS/nda 1.3.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches
tools.hpp File Reference
#include "../concepts.hpp"
#include "../map.hpp"
#include "../mapped_functions.hpp"
#include <complex>
#include <tuple>
#include <type_traits>
#include <utility>

Detailed Description

Provides various traits and utilities for the BLAS interface.

Definition in file tools.hpp.

Go to the source code of this file.

Typedefs

using nda::dcomplex = std::complex<double>
 Alias for std::complex<double> type.
 

Functions

template<MemoryMatrix A>
int nda::blas::get_ld (A const &a)
 Get the leading dimension in LAPACK jargon of an nda::MemoryMatrix.
 
template<MemoryMatrix A>
int nda::blas::get_ncols (A const &a)
 Get the number of columns in LAPACK jargon of an nda::MemoryMatrix.
 

Variables

template<bool conj, bool transpose>
const char nda::blas::get_op
 Variable template that determines the BLAS matrix operation tag ('N','T','C') based on the given boolean flags for conjugation and transposition.
 
template<Array A>
static constexpr bool nda::blas::has_C_layout
 Constexpr variable that is true if the given nda::Array type has a C memory layout.
 
template<Array A>
static constexpr bool nda::blas::has_F_layout
 Constexpr variable that is true if the given nda::Array type has a Fortran memory layout.
 
template<typename A >
static constexpr bool nda::blas::is_conj_array_expr = false
 Constexpr variable that is true if the given type is a conjugate lazy expression.
 
template<MemoryArray A>
static constexpr bool nda::blas::is_conj_array_expr< expr_call< conj_f, A > > = true
 Specialization of nda::blas::is_conj_array_expr for the conjugate lazy expressions.