dense_to_sparse.h File Reference
#include "../dist_array.h"
Include dependency graph for dense_to_sparse.h:
This graph shows which files directly or indirectly include this file:
Namespaces | |
TiledArray | |
Functions | |
template<typename Tile , typename ResultPolicy = SparsePolicy, typename ArgPolicy > | |
std::enable_if_t<!is_dense_v< ResultPolicy > &&is_dense_v< ArgPolicy >, DistArray< Tile, ResultPolicy > > | TiledArray::to_sparse (DistArray< Tile, ArgPolicy > const &dense_array) |
Function to convert a dense array into a block sparse array. More... | |
template<typename Tile , typename Policy > | |
std::enable_if_t<!is_dense_v< Policy >, DistArray< Tile, Policy > > | TiledArray::to_sparse (DistArray< Tile, Policy > const &sparse_array) |
If the array is already sparse return a copy of the array. More... | |