Skip to content

ncg: create test for negative inner product update #5

Description

@dmdunla

In all update types except Steepest Descent, a check on the sign of an vector inner product is checked:

                  if gkTgkold > 0
                        bk = ...;
                    else
                        fprintf(1,[mfilename,': warning: bk set to 0\n']);
                        bk = 0;
                    end

Currently, there is no test which reaches the else clause. A function and starting point should be identified which exercises this code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dead codeThis code cannot be reached

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions