Skip to content

Broadcasting rather than BLAS 1 calls? #181

@haampie

Description

@haampie

There are some instances where BLAS calls can be replaced by broadcasting.

In CG and Chebyshev iteration there is an axpby which is currently written as scale and axpy (since axpby is not part of Julia 0.6). This looks wasteful:

scale!(cheb.u, β)
@blas! cheb.u += one(T) * cheb.c

could be replaced by

@. cheb.u = cheb.c + β * cheb.u

Is there any reason not to do this? And while we're at it, can't we replace axpy's with broadcasting in general?

cc'ing @andreasnoack because we probably discussed this earlier.

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