daphne-project/daphne

Kernel specialization of EwBinaryObjSca for DenseMatrix,double and double scalar multiplication

开放

#346 创建于 2022年4月29日

 (1 条评论) (0 个反应) (0 位负责人)C++ (84 个派生)auto 404
good first issue

仓库指标

星标
 (80 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

  1. A partial specialization of the EwBinaryObjSca-kernel for DenseMatrix<double> * int64_t (result DenseMatrix<double>).
  2. Ideally some test cases in test/runtime/local/kernels/EwBinaryObjScaTest.cpp
  3. Optionally, partial specilization for DenseMatrix<int64_t> * double (result DenseMatrix<double>).

贡献者指南