Mentions légales du service

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

Add MatDense<FPP,GPU2>::operator*= (alias to scalarMultiply).

parent 902b6b20
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,7 @@ namespace Faust ...@@ -57,6 +57,7 @@ namespace Faust
void operator*=(const MatDense<FPP, GPU2> &other); void operator*=(const MatDense<FPP, GPU2> &other);
void operator*=(const MatDense<FPP, Cpu> &other); void operator*=(const MatDense<FPP, Cpu> &other);
// void operator*=(MatSparse<FPP, Cpu> &other); // void operator*=(MatSparse<FPP, Cpu> &other);
void operator*=(const FPP& lambda);
void scalarMultiply(const FPP& lambda); void scalarMultiply(const FPP& lambda);
void resize(const faust_unsigned_int nbRow, const faust_unsigned_int nbCol); void resize(const faust_unsigned_int nbRow, const faust_unsigned_int nbCol);
void resize(const faust_unsigned_int nbRow){resize(nbRow,nbRow);} void resize(const faust_unsigned_int nbRow){resize(nbRow,nbRow);}
......
...@@ -104,6 +104,12 @@ namespace Faust ...@@ -104,6 +104,12 @@ namespace Faust
dsm_funcs->mul_scalar(gpu_mat, &lambda); dsm_funcs->mul_scalar(gpu_mat, &lambda);
} }
template<>
void Faust::MatDense<@FAUST_SCALAR_FOR_GM@,GPU2>::operator*=(const @FAUST_SCALAR_FOR_GM@& lambda)
{
this->scalarMultiply(lambda);
}
template<> template<>
Faust::MatDense<@FAUST_SCALAR_FOR_GM@, Cpu> Faust::MatDense<@FAUST_SCALAR_FOR_GM@,GPU2>::tocpu(const void* stream/*=nullptr*/) Faust::MatDense<@FAUST_SCALAR_FOR_GM@, Cpu> Faust::MatDense<@FAUST_SCALAR_FOR_GM@,GPU2>::tocpu(const void* stream/*=nullptr*/)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment