#include "../../blas/tools.hpp"
#include <complex>
Provides a C++ interface for various LAPACK routines.
Definition in file cxx_interface.hpp.
Go to the source code of this file.
|
| template<Array A> |
| static constexpr char | nda::lapack::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::lapack::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::lapack::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::lapack::is_conj_array_expr |
| | Constexpr variable that is true if the given type is a conjugate lazy expression.
|
◆ get_array()
template<Array A>
requires (MemoryArray<A> or is_conj_array_expr<A>)
Get the underlying array of a conjugate lazy expression or return the array itself in case it is an nda::MemoryArray.
- Template Parameters
-
- Parameters
-
| a | Conjugate expression or array/view. |
- Returns
- nda::MemoryArray object.
Definition at line 62 of file tools.hpp.
◆ get_ld()
template<MemoryArray A>
requires (get_rank<A> == 1 or get_rank<A> == 2)
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.
- Template Parameters
-
- Parameters
-
- Returns
- Leading dimension for BLAS/LAPACK calls.
Definition at line 122 of file tools.hpp.
◆ get_ncols()
template<MemoryArray A>
requires (get_rank<A> == 1 or get_rank<A> == 2)
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.
- Template Parameters
-
- Parameters
-
- Returns
- Number of columns for BLAS/LAPACK calls.
Definition at line 142 of file tools.hpp.
◆ 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 Parameters
-
| conj | Boolean flag for conjugation. |
| transpose | Boolean flag for transposition. |
Definition at line 98 of file tools.hpp.