Skip to content

[itpp] itpp release 4.3.1 contains bug fixed in git version #42855

@shangjiaxuan

Description

@shangjiaxuan

Describe the bug
In itpp release 4.3.1 source file itpp\base\mat.cpp, lines 176-177 is:

  it_assert_debug(m1.rows() == m2.cols(),
                  "Mat<>::operator*(): Wrong sizes");

whereas the block within HAVE_BLAS and for complex number matrices all have correct

  it_assert_debug(m1.cols() == m2.rows(), "mat::operator*(): Wrong sizes");

This breaks correct matrix multiplication when compiled without blas and using double data type.

The git version at https://sourceforge.net/p/itpp/git/ci/master/tree/itpp/base/mat.cpp has this fixed.

Environment

  • OS: Windows
  • Compiler: 19.41.34123

To Reproduce
Steps to reproduce the behavior:

  1. ./vcpkg install itpp
  2. Write a simple rotation * vector transform
  3. See error

Expected behavior
Allows to multiply 3x3 matrix with 3x1 "vector"

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions