Skip to content

How does advanced spmv support $y = \alpha A x + \beta y$ #4

@yhmtsai

Description

@yhmtsai

Does the current interface support advanced spmv like ($y = \alpha A x + \beta y$)?

AFAIK, it supported scaled like multiply(A, scaled(alpha, x), y) for $y = \alpha A x$ from https://github.com/SparseBLAS/spblas-example-project/blob/8ba01d8364171f3c888df31f4e95874c433a43db/src/simple_spmv.cpp#L18-L19
How does it apply to advanced spmv? something like multiply(A, scaled(alpha, x), scaled(beta, y)) or another function?
scaled(beta, y) reads the $beta * y$ not $y$. When putting the value back to the $scaled(beta, y)$, does y store value/beta?
If the scaled version also works on output, it also makes the original multiply(A, scaled(alpha, x), y) like $y = \alpha A x + y$
Another function for this advance spmv make more sense to me currently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions