/*******************************************************
 * Copyright (c) 2014, ArrayFire
 * All rights reserved.
 *
 * This file is distributed under 3-clause BSD license.
 * The complete license agreement can be obtained at:
 * http://arrayfire.com/licenses/BSD-3-Clause
 ********************************************************/

#include <Array.hpp>
#include <common/SparseArray.hpp>

#ifdef USE_MKL
#include <mkl_spblas.h>
#endif

namespace cpu
{

#ifdef USE_MKL
typedef MKL_Complex8  sp_cfloat;
typedef MKL_Complex16 sp_cdouble;
#else
typedef cfloat        sp_cfloat;
typedef cdouble       sp_cdouble;
#endif

template<typename T, af_storage stype>
common::SparseArray<T> sparseConvertDenseToStorage(const Array<T> &in);

template<typename T, af_storage stype>
Array<T> sparseConvertStorageToDense(const common::SparseArray<T> &in);

template<typename T, af_storage src, af_storage dest>
common::SparseArray<T> sparseConvertStorageToStorage(const common::SparseArray<T> &in);

}
