.. _program_listing_file_src_sparsebase_permute_permuter.cc: Program Listing for File permuter.cc ==================================== |exhale_lsh| :ref:`Return to documentation for file ` (``src/sparsebase/permute/permuter.cc``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #include "sparsebase/permute/permuter.h" #include "sparsebase/format/array.h" #include "sparsebase/format/csr.h" namespace sparsebase::permute { template std::tuple>, ReturnFormatType *> Permuter::GetPermutationCached( format::Format *format, std::vector contexts, bool convert_input) { // if (dynamic_cast(format) == nullptr) // throw utils::TypeException(format->get_name(), // InputFormatType::get_name_static()); return this->CachedExecute(this->params_.get(), contexts, convert_input, false, format); } template std::tuple>, ReturnFormatType *> Permuter::GetPermutationCached( format::Format *format, utils::Parameters *params, std::vector contexts, bool convert_input) { // if (dynamic_cast(format) == nullptr) // throw utils::TypeException(format->get_name(), // InputFormatType::get_name_static()); return this->CachedExecute(params, contexts, convert_input, false, format); } template ReturnFormatType *Permuter::GetPermutation( format::Format *format, std::vector contexts, bool convert_input) { return this->Execute(this->params_.get(), contexts, convert_input, format); } template ReturnFormatType *Permuter::GetPermutation( format::Format *format, utils::Parameters *params, std::vector contexts, bool convert_input) { return this->Execute(params, contexts, convert_input, format); } template Permuter::~Permuter() = default; #if !defined(_HEADER_ONLY) #include "init/permuter.inc" #endif } // namespace sparsebase::permute