This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
Bug 1671 - a typo about contraction Op NumDimensions
Summary: a typo about contraction Op NumDimensions
Status: RESOLVED FIXED
Alias: None
Product: Eigen
Classification: Unclassified
Component: Tensor (show other bugs)
Version: 3.4 (development)
Hardware: All All
: Normal Wrong Result
Assignee: Nobody
URL:
Whiteboard:
Keywords: test-needed
Depends on:
Blocks:
 
Reported: 2019-01-26 18:07 UTC by 张浩
Modified: 2019-12-04 18:25 UTC (History)
5 users (show)



Attachments

Description 张浩 2019-01-26 18:07:25 UTC
current master branch

this file:
unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h

line 105
it says
  static const int NumDimensions = traits<RhsXprType>::NumDimensions + traits<RhsXprType>::NumDimensions - 2 * array_size<Dimensions>::value;

it shoud be
  static const int NumDimensions = traits<LhsXprType>::NumDimensions + traits<RhsXprType>::NumDimensions - 2 * array_size<Dimensions>::value;
Comment 1 Christoph Hertzberg 2019-02-18 14:31:24 UTC
Seems plausible to me. Could you provide a unit-test which exposes the error?
Comment 3 Nobody 2019-12-04 18:25:52 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1671.

Note You need to log in before you can comment on or make changes to this bug.