PARALUTION  1.0.0
PARALUTION
host_conversion.cpp File Reference
#include "../../utils/def.hpp"
#include "host_conversion.hpp"
#include "../matrix_formats.hpp"
#include "../matrix_formats_ind.hpp"
#include "../../utils/allocate_free.hpp"
#include "../../utils/log.hpp"
#include <stdlib.h>
#include <complex>

Namespaces

 paralution
 

Macros

#define omp_set_num_threads(num)   ;
 

Functions

template<typename ValueType , typename IndexType >
void paralution::csr_to_dense (const int omp_threads, const IndexType nnz, const IndexType nrow, const IndexType ncol, const MatrixCSR< ValueType, IndexType > &src, MatrixDENSE< ValueType > *dst)
 
template<typename ValueType , typename IndexType >
void paralution::dense_to_csr (const int omp_threads, const IndexType nrow, const IndexType ncol, const MatrixDENSE< ValueType > &src, MatrixCSR< ValueType, IndexType > *dst, IndexType *nnz)
 
template<typename ValueType , typename IndexType >
void paralution::csr_to_mcsr (const int omp_threads, const IndexType nnz, const IndexType nrow, const IndexType ncol, const MatrixCSR< ValueType, IndexType > &src, MatrixMCSR< ValueType, IndexType > *dst)
 
template<typename ValueType , typename IndexType >
void paralution::mcsr_to_csr (const int omp_threads, const IndexType nnz, const IndexType nrow, const IndexType ncol, const MatrixMCSR< ValueType, IndexType > &src, MatrixCSR< ValueType, IndexType > *dst)
 
template<typename ValueType , typename IndexType >
void paralution::csr_to_coo (const int omp_threads, const IndexType nnz, const IndexType nrow, const IndexType ncol, const MatrixCSR< ValueType, IndexType > &src, MatrixCOO< ValueType, IndexType > *dst)
 
template<typename ValueType , typename IndexType >
void paralution::csr_to_ell (const int omp_threads, const IndexType nnz, const IndexType nrow, const IndexType ncol, const MatrixCSR< ValueType, IndexType > &src, MatrixELL< ValueType, IndexType > *dst, IndexType *nnz_ell)
 
template<typename ValueType , typename IndexType >
void paralution::ell_to_csr (const int omp_threads, const IndexType nnz, const IndexType nrow, const IndexType ncol, const MatrixELL< ValueType, IndexType > &src, MatrixCSR< ValueType, IndexType > *dst, IndexType *nnz_csr)
 
template<typename ValueType , typename IndexType >
void paralution::hyb_to_csr (const int omp_threads, const IndexType nnz, const IndexType nrow, const IndexType ncol, const IndexType nnz_ell, const IndexType nnz_coo, const MatrixHYB< ValueType, IndexType > &src, MatrixCSR< ValueType, IndexType > *dst, IndexType *nnz_csr)
 
template<typename ValueType , typename IndexType >
void paralution::coo_to_csr (const int omp_threads, const IndexType nnz, const IndexType nrow, const IndexType ncol, const MatrixCOO< ValueType, IndexType > &src, MatrixCSR< ValueType, IndexType > *dst)
 
template<typename ValueType , typename IndexType >
void paralution::csr_to_dia (const int omp_threads, const IndexType nnz, const IndexType nrow, const IndexType ncol, const MatrixCSR< ValueType, IndexType > &src, MatrixDIA< ValueType, IndexType > *dst, IndexType *nnz_dia)
 
template<typename ValueType , typename IndexType >
void paralution::dia_to_csr (const int omp_threads, const IndexType nnz, const IndexType nrow, const IndexType ncol, const MatrixDIA< ValueType, IndexType > &src, MatrixCSR< ValueType, IndexType > *dst, IndexType *nnz_csr)
 
template<typename ValueType , typename IndexType >
void paralution::csr_to_hyb (const int omp_threads, const IndexType nnz, const IndexType nrow, const IndexType ncol, const MatrixCSR< ValueType, IndexType > &src, MatrixHYB< ValueType, IndexType > *dst, IndexType *nnz_hyb, IndexType *nnz_ell, IndexType *nnz_coo)
 
template void paralution::csr_to_coo (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< double, int > &src, MatrixCOO< double, int > *dst)
 
template void paralution::csr_to_coo (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< float, int > &src, MatrixCOO< float, int > *dst)
 
template void paralution::csr_to_coo (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< std::complex< double >, int > &src, MatrixCOO< std::complex< double >, int > *dst)
 
template void paralution::csr_to_coo (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< std::complex< float >, int > &src, MatrixCOO< std::complex< float >, int > *dst)
 
template void paralution::csr_to_coo (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< int, int > &src, MatrixCOO< int, int > *dst)
 
template void paralution::csr_to_mcsr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< double, int > &src, MatrixMCSR< double, int > *dst)
 
template void paralution::csr_to_mcsr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< float, int > &src, MatrixMCSR< float, int > *dst)
 
template void paralution::csr_to_mcsr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< std::complex< double >, int > &src, MatrixMCSR< std::complex< double >, int > *dst)
 
template void paralution::csr_to_mcsr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< std::complex< float >, int > &src, MatrixMCSR< std::complex< float >, int > *dst)
 
template void paralution::csr_to_mcsr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< int, int > &src, MatrixMCSR< int, int > *dst)
 
template void paralution::mcsr_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixMCSR< double, int > &src, MatrixCSR< double, int > *dst)
 
template void paralution::mcsr_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixMCSR< float, int > &src, MatrixCSR< float, int > *dst)
 
template void paralution::mcsr_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixMCSR< std::complex< double >, int > &src, MatrixCSR< std::complex< double >, int > *dst)
 
template void paralution::mcsr_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixMCSR< std::complex< float >, int > &src, MatrixCSR< std::complex< float >, int > *dst)
 
template void paralution::mcsr_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixMCSR< int, int > &src, MatrixCSR< int, int > *dst)
 
template void paralution::csr_to_dia (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< double, int > &src, MatrixDIA< double, int > *dst, int *nnz_dia)
 
template void paralution::csr_to_dia (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< float, int > &src, MatrixDIA< float, int > *dst, int *nnz_dia)
 
template void paralution::csr_to_dia (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< std::complex< double >, int > &src, MatrixDIA< std::complex< double >, int > *dst, int *nnz_dia)
 
template void paralution::csr_to_dia (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< std::complex< float >, int > &src, MatrixDIA< std::complex< float >, int > *dst, int *nnz_dia)
 
template void paralution::csr_to_dia (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< int, int > &src, MatrixDIA< int, int > *dst, int *nnz_dia)
 
template void paralution::csr_to_hyb (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< double, int > &src, MatrixHYB< double, int > *dst, int *nnz_hyb, int *nnz_ell, int *nnz_coo)
 
template void paralution::csr_to_hyb (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< float, int > &src, MatrixHYB< float, int > *dst, int *nnz_hyb, int *nnz_ell, int *nnz_coo)
 
template void paralution::csr_to_hyb (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< std::complex< double >, int > &src, MatrixHYB< std::complex< double >, int > *dst, int *nnz_hyb, int *nnz_ell, int *nnz_coo)
 
template void paralution::csr_to_hyb (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< std::complex< float >, int > &src, MatrixHYB< std::complex< float >, int > *dst, int *nnz_hyb, int *nnz_ell, int *nnz_coo)
 
template void paralution::csr_to_hyb (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< int, int > &src, MatrixHYB< int, int > *dst, int *nnz_hyb, int *nnz_ell, int *nnz_coo)
 
template void paralution::csr_to_ell (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< double, int > &src, MatrixELL< double, int > *dst, int *nnz_ell)
 
template void paralution::csr_to_ell (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< float, int > &src, MatrixELL< float, int > *dst, int *nnz_ell)
 
template void paralution::csr_to_ell (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< std::complex< double >, int > &src, MatrixELL< std::complex< double >, int > *dst, int *nnz_ell)
 
template void paralution::csr_to_ell (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< std::complex< float >, int > &src, MatrixELL< std::complex< float >, int > *dst, int *nnz_ell)
 
template void paralution::csr_to_ell (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< int, int > &src, MatrixELL< int, int > *dst, int *nnz_ell)
 
template void paralution::csr_to_dense (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< double, int > &src, MatrixDENSE< double > *dst)
 
template void paralution::csr_to_dense (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< float, int > &src, MatrixDENSE< float > *dst)
 
template void paralution::csr_to_dense (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< std::complex< double >, int > &src, MatrixDENSE< std::complex< double > > *dst)
 
template void paralution::csr_to_dense (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< std::complex< float >, int > &src, MatrixDENSE< std::complex< float > > *dst)
 
template void paralution::csr_to_dense (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCSR< int, int > &src, MatrixDENSE< int > *dst)
 
template void paralution::dense_to_csr (const int omp_threads, const int nrow, const int ncol, const MatrixDENSE< double > &src, MatrixCSR< double, int > *dst, int *nnz)
 
template void paralution::dense_to_csr (const int omp_threads, const int nrow, const int ncol, const MatrixDENSE< float > &src, MatrixCSR< float, int > *dst, int *nnz)
 
template void paralution::dense_to_csr (const int omp_threads, const int nrow, const int ncol, const MatrixDENSE< std::complex< double > > &src, MatrixCSR< std::complex< double >, int > *dst, int *nnz)
 
template void paralution::dense_to_csr (const int omp_threads, const int nrow, const int ncol, const MatrixDENSE< std::complex< float > > &src, MatrixCSR< std::complex< float >, int > *dst, int *nnz)
 
template void paralution::dense_to_csr (const int omp_threads, const int nrow, const int ncol, const MatrixDENSE< int > &src, MatrixCSR< int, int > *dst, int *nnz)
 
template void paralution::dia_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixDIA< double, int > &src, MatrixCSR< double, int > *dst, int *nnz_csr)
 
template void paralution::dia_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixDIA< float, int > &src, MatrixCSR< float, int > *dst, int *nnz_csr)
 
template void paralution::dia_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixDIA< std::complex< double >, int > &src, MatrixCSR< std::complex< double >, int > *dst, int *nnz_csr)
 
template void paralution::dia_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixDIA< std::complex< float >, int > &src, MatrixCSR< std::complex< float >, int > *dst, int *nnz_csr)
 
template void paralution::dia_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixDIA< int, int > &src, MatrixCSR< int, int > *dst, int *nnz_csr)
 
template void paralution::ell_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixELL< double, int > &src, MatrixCSR< double, int > *dst, int *nnz_csr)
 
template void paralution::ell_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixELL< float, int > &src, MatrixCSR< float, int > *dst, int *nnz_csr)
 
template void paralution::ell_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixELL< std::complex< double >, int > &src, MatrixCSR< std::complex< double >, int > *dst, int *nnz_csr)
 
template void paralution::ell_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixELL< std::complex< float >, int > &src, MatrixCSR< std::complex< float >, int > *dst, int *nnz_csr)
 
template void paralution::ell_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixELL< int, int > &src, MatrixCSR< int, int > *dst, int *nnz_csr)
 
template void paralution::coo_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCOO< double, int > &src, MatrixCSR< double, int > *dst)
 
template void paralution::coo_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCOO< float, int > &src, MatrixCSR< float, int > *dst)
 
template void paralution::coo_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCOO< std::complex< double >, int > &src, MatrixCSR< std::complex< double >, int > *dst)
 
template void paralution::coo_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCOO< std::complex< float >, int > &src, MatrixCSR< std::complex< float >, int > *dst)
 
template void paralution::coo_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const MatrixCOO< int, int > &src, MatrixCSR< int, int > *dst)
 
template void paralution::hyb_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const int nnz_ell, const int nnz_coo, const MatrixHYB< double, int > &src, MatrixCSR< double, int > *dst, int *nnz_csr)
 
template void paralution::hyb_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const int nnz_ell, const int nnz_coo, const MatrixHYB< float, int > &src, MatrixCSR< float, int > *dst, int *nnz_csr)
 
template void paralution::hyb_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const int nnz_ell, const int nnz_coo, const MatrixHYB< std::complex< double >, int > &src, MatrixCSR< std::complex< double >, int > *dst, int *nnz_csr)
 
template void paralution::hyb_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const int nnz_ell, const int nnz_coo, const MatrixHYB< std::complex< float >, int > &src, MatrixCSR< std::complex< float >, int > *dst, int *nnz_csr)
 
template void paralution::hyb_to_csr (const int omp_threads, const int nnz, const int nrow, const int ncol, const int nnz_ell, const int nnz_coo, const MatrixHYB< int, int > &src, MatrixCSR< int, int > *dst, int *nnz_csr)
 

Macro Definition Documentation