TRIQS/nda 1.3.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches
utils.hpp
#include "../basic_array.hpp"
#include "../basic_functions.hpp"
#include "../concepts.hpp"
#include "../declarations.hpp"
#include "../exceptions.hpp"
#include "../layout/policies.hpp"
#include "../macros.hpp"
#include "../mem/address_space.hpp"
#include "../traits.hpp"
#include <utility>

Detailed Description

Provides utility functions for the nda::linalg namespace.

Definition in file utils.hpp.

Go to the source code of this file.

Functions

template<Scalar T, typename LP = F_layout>
auto nda::linalg::get_permutation_matrix (Vector auto const &ipiv, int m)
 Get the permutation matrix \( \mathbf{P} \) from the pivot indices returned by nda::lapack::getrf or other LAPACK routines.
template<Scalar T, typename LP = F_layout>
auto nda::linalg::get_permutation_matrix (Vector auto const &sigma, bool column_permutations=false)
 Get the permutation matrix \( \mathbf{P} \) from a permutation vector \( \mathbf{\sigma} \).
auto nda::linalg::get_permutation_vector (Vector auto const &ipiv, int m)
 Get the permutation vector \( \mathbf{\sigma} \) from the pivot indices returned by nda::lapack::getrf or other LAPACK routines.