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

Skip to content

DataMatrix::resizeRowsCols returns wrong matrix #234

@Milchshakee

Description

@Milchshakee

When running:

  DataVector v(2);
  DataMatrix m(2,2);
  m(0,0) = 1;
  m(0,1) = 2;
  m(1,0) = 3;
  m(1,1) = 4;
  m.getColumn(0, v); // v= (1,3)
  m.resizeRowsCols(2,1);
  m.getColumn(0, v); // v=(1,2) but should still be (1,3)

the code returns the wrong result, as the comments indicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionGeneral problem for which possible solutions need to be discussed

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions