Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DataMatrix::resizeToSubMatrix off-by-two error #232

@Milchshakee

Description

@Milchshakee

When running the following code:

  sgpp::base::DataMatrix mat(3, 1);
  mat(0, 0) = 0;
  mat(1, 0) = 1;
  mat(2, 0) = 2;
  mat.resizeToSubMatrix(1, 0, 2, 0);

the matrix should have the entries 1 and 2 left in it. However, the matrix has the entries <uninitialized> and 0. Therefore there must be an off-by-two error somewhere in that function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugCrashes, freezes, compilation/run-time errors, undesirable behavior, wrong info in help/docsconfirmedIssues that have been reproduced by another user (not the submitter)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions