FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

batchFunc only multiplies first column in a sparse matrix · Issue #1988 · arrayfire/arrayfire · GitHub

Repository navigation

batchFunc only multiplies first column in a sparse matrix #1988

Description

When using batchFunc to perform element-wise multiplication, only the first column is actually multiplied when using a sparse matrix.

For example, if G is a square sparse matrix and nw is a dense column vector, the following code only applies the multiplication on the first column of G:

array batch_mult(const array &lhs, const array &rhs) {
	return lhs * rhs;
}

array Cw = batchFunc(G, nw, batch_mult); 

If G is dense, then everything works fine.

ArrayFire v3.5.1 (CUDA, 64-bit Linux, build 0a675e8)
Platform: CUDA Toolkit 8, Driver: 375.66
[0] Tesla P100-PCIE-16GB, 16277 MB, CUDA Compute 6.0
-1- Quadro K620, 1998 MB, CUDA Compute 5.0

Activity

  1. pavanky commented on Nov 13, 2017

    Member

    @villekf batchFuc / GFOR wasn't meant to be used with sparse matrices..

  2. villekf commented on Nov 14, 2017

    Author

    Some kind of error/warning when used with sparse matrices might be good. Since currently it seems to work, but actually doesn't.

    Though I wouldn't mind sparse support for batchFunc also.

  3. self-assigned this
    on Apr 23, 2020
  4. added this to the 3.7.3 milestone on Aug 7, 2020
  5. modified the milestones: 3.7.3, 3.8.1 on Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL