daphne-project/daphne
Kernel specialization of EwBinaryObjSca for DenseMatrix,double and double scalar multiplication
Aberta
#346 aberto em 29 de abr. de 2022
good first issue
Métricas do repositório
- Stars
- (80 estrelas)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
Currently EwBinaryObjSca-kernel supports element-wise multiplications between dense matrices and scalars of the same value type (DenseMatrix<double> * double, DenseMatrix<int> * int). We need to support this operation between different value types as well. This will allow us to run more scripts like scripts/lmDS.daph, which requires an element-wise multiplication between DenseMatrix<double> and an int.
We need to specialize kernel EwBinaryObjSca for DenseMatrix<double> * int. The result should be a DenseMatrix<double> matrix.
This issue asks you to implement
- A partial specialization of the
EwBinaryObjSca-kernel forDenseMatrix<double> * int64_t(resultDenseMatrix<double>). - Ideally some test cases in
test/runtime/local/kernels/EwBinaryObjScaTest.cpp - Optionally, partial specilization for
DenseMatrix<int64_t> * double(resultDenseMatrix<double>).