Skip to content

LinearCombination.java evaluate method #11

Open
@alexpArtos

Description

Hi all,

I think there is a problem with the evaluate() method in relations.objects.LinearCombination.
This line seems fishy if the condition is true:

final FieldT value = index == 0 ? one : input.get((int) index).mul(terms.get(i).value());

If index == 0, we want to add the constant value of the linear combination, which should be
terms.get(i).value(), not one.

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