|
TRIQS/nda 1.3.0
Multi-dimensional array library for C++
|
Utilities for the BLAS/LAPACK interface.
Typedefs | |
| using | nda::dcomplex = std::complex<double> |
| Alias for std::complex<double> type. | |
Functions | |
| template<Array A> requires (MemoryArray<A> or is_conj_array_expr<A>) | |
| MemoryArray decltype(auto) | nda::blas::get_array (A &&a) |
| Get the underlying array of a conjugate lazy expression or return the array itself in case it is an nda::MemoryArray. | |
| template<MemoryArray A> requires (get_rank<A> == 1 or get_rank<A> == 2) | |
| int | nda::blas::get_ld (A const &a) |
| Get the leading dimension of an nda::MemoryArray with rank 1 or 2 for BLAS/LAPACK calls. | |
| template<MemoryArray A> requires (get_rank<A> == 1 or get_rank<A> == 2) | |
| int | nda::blas::get_ncols (A const &a) |
| Get the number of columns of an nda::MemoryArray with rank 1 or 2 for BLAS/LAPACK calls. | |
Variables | |
| template<Array A> | |
| static constexpr 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 nda::C_layout. | |
| template<Array A> | |
| static constexpr bool | nda::blas::has_F_layout |
| Constexpr variable that is true if the given nda::Array type has nda::F_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< detail::conj_f, A > > = true |
| Specialization of nda::blas::is_conj_array_expr for the conjugate lazy expressions. | |
| MemoryArray decltype(auto) nda::blas::get_array | ( | A && | a | ) |
#include <nda/blas/tools.hpp>
Get the underlying array of a conjugate lazy expression or return the array itself in case it is an nda::MemoryArray.
| A | nda::Array type. |
| a | Conjugate expression or array/view. |
| int nda::blas::get_ld | ( | A const & | a | ) |
#include <nda/blas/tools.hpp>
Get the leading dimension of an nda::MemoryArray with rank 1 or 2 for BLAS/LAPACK calls.
The leading dimension is the stride between two consecutive columns (rows) of a matrix in Fortran (C) layout. For 1-dimensional arrays, we simply return the size of the array.
| A | nda::MemoryArray type. |
| a | nda::MemoryArray object. |
| int nda::blas::get_ncols | ( | A const & | a | ) |
#include <nda/blas/tools.hpp>
Get the number of columns of an nda::MemoryArray with rank 1 or 2 for BLAS/LAPACK calls.
The number of columns corresponds to the extent of the second (first) dimension of a matrix in Fortran (C) layout. For 1-dimensional arrays, we return 1.
| A | nda::MemoryArray type. |
| a | nda::MemoryArray object. |
|
staticconstexpr |
#include <nda/blas/tools.hpp>
Variable template that determines the BLAS matrix operation tag ('N','T','C') based on the given boolean flags for conjugation and transposition.
| conj | Boolean flag for conjugation. |
| transpose | Boolean flag for transposition. |