Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 61f1e455 authored by hhakim's avatar hhakim
Browse files

Add a new overload of MatSparse<FPP, GPU2>::tocpu.

parent e0a4a29d
Branches
Tags
No related merge requests found
......@@ -74,6 +74,7 @@ namespace Faust
void tocpu(MatSparse<FPP,Cpu> &sp_mat) const;
void tocpu(int* row_ptr, int* col_ind, FPP* value_ptr, int* nrows=nullptr, int* ncols=nullptr, int* nnz=nullptr) const;
MatSparse<FPP,Cpu> tocpu() const;
Real<FPP> norm() const;
void transpose();
void adjoint();
......
......@@ -29,5 +29,14 @@ namespace Faust {
{
return MatDense<FPP, GPU2>(*this);
}
template<typename FPP>
MatSparse<FPP, Cpu> MatSparse<FPP,GPU2>::tocpu() const
{
MatSparse<FPP, Cpu> cpu_smat(this->getNbRow(), this->getNbCol());
tocpu(cpu_smat);
return cpu_smat;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment