Skip to content

Give a better solution for sum of Grads #487

Open
@pvillacorta

Description

@pvillacorta

Now the sum of Grads is solved as follows:

+(x::Grad, y::Grad) = Grad(x.A .+ y.A, max(x.T, y.T), max(x.rise, y.rise), max(x.fall, y.fall), max(x.delay, y.delay))

But it would be nice if we could "stack" gradients:
image

Maybe this could be also extended to the rest of Sequence elements, so we could sum RF's, ADC's or even entire Sequence's in the same way.

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