Skip to content

Summation and dot product for efficiency #2

@rasmuse

Description

@rasmuse

sum(fs.Variable() for i in range(n)) is slow for large n.
So is sum(fs.Variable() * parameter[i] for i in range(n)).

It should be simple to create another operator or two, called e.g. Sum and Dot, to allow for faster handling of such expressions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions