mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-12 17:33:15 +08:00
Fixed compilation warnings
This commit is contained in:
parent
ad3d68400e
commit
7dfe75f445
@ -531,7 +531,7 @@ struct TensorContractionEvaluatorBase
|
|||||||
eval_right_dims[i] = m_rightImpl.dimensions()[i];
|
eval_right_dims[i] = m_rightImpl.dimensions()[i];
|
||||||
}
|
}
|
||||||
// We keep the pairs of contracting indices.
|
// We keep the pairs of contracting indices.
|
||||||
for (unsigned int i = 0; i < ContractDims; i++) {
|
for (int i = 0; i < ContractDims; i++) {
|
||||||
eval_op_indices[i].first = op.indices()[i].first;
|
eval_op_indices[i].first = op.indices()[i].first;
|
||||||
eval_op_indices[i].second = op.indices()[i].second;
|
eval_op_indices[i].second = op.indices()[i].second;
|
||||||
}
|
}
|
||||||
@ -545,7 +545,7 @@ struct TensorContractionEvaluatorBase
|
|||||||
}
|
}
|
||||||
// We need to flip all the pairs of contracting indices as well as
|
// We need to flip all the pairs of contracting indices as well as
|
||||||
// reversing the dimensions.
|
// reversing the dimensions.
|
||||||
for (unsigned int i = 0; i < ContractDims; i++) {
|
for (int i = 0; i < ContractDims; i++) {
|
||||||
eval_op_indices[i].first = LDims - 1 - op.indices()[i].second;
|
eval_op_indices[i].first = LDims - 1 - op.indices()[i].second;
|
||||||
eval_op_indices[i].second = RDims - 1 - op.indices()[i].first;
|
eval_op_indices[i].second = RDims - 1 - op.indices()[i].first;
|
||||||
}
|
}
|
||||||
@ -584,7 +584,7 @@ struct TensorContractionEvaluatorBase
|
|||||||
for (int i = 0; i < LDims; i++) {
|
for (int i = 0; i < LDims; i++) {
|
||||||
// find if we are contracting on index i of left tensor
|
// find if we are contracting on index i of left tensor
|
||||||
bool contracting = false;
|
bool contracting = false;
|
||||||
for (unsigned int j = 0; j < ContractDims; j++) {
|
for (int j = 0; j < ContractDims; j++) {
|
||||||
if (eval_op_indices[j].first == i) {
|
if (eval_op_indices[j].first == i) {
|
||||||
contracting = true;
|
contracting = true;
|
||||||
break;
|
break;
|
||||||
@ -612,7 +612,7 @@ struct TensorContractionEvaluatorBase
|
|||||||
for (int i = 0; i < RDims; i++) {
|
for (int i = 0; i < RDims; i++) {
|
||||||
bool contracting = false;
|
bool contracting = false;
|
||||||
// find if we are contracting on index i of right tensor
|
// find if we are contracting on index i of right tensor
|
||||||
for (unsigned int j = 0; j < ContractDims; j++) {
|
for (int j = 0; j < ContractDims; j++) {
|
||||||
if (eval_op_indices[j].second == i) {
|
if (eval_op_indices[j].second == i) {
|
||||||
contracting = true;
|
contracting = true;
|
||||||
break;
|
break;
|
||||||
@ -639,7 +639,7 @@ struct TensorContractionEvaluatorBase
|
|||||||
// each tensor, we'll only look at the first tensor here.
|
// each tensor, we'll only look at the first tensor here.
|
||||||
m_rhs_inner_dim_contiguous = true;
|
m_rhs_inner_dim_contiguous = true;
|
||||||
m_rhs_inner_dim_reordered = false;
|
m_rhs_inner_dim_reordered = false;
|
||||||
for (unsigned int i = 0; i < ContractDims; i++) {
|
for (int i = 0; i < ContractDims; i++) {
|
||||||
Index left = eval_op_indices[i].first;
|
Index left = eval_op_indices[i].first;
|
||||||
Index right = eval_op_indices[i].second;
|
Index right = eval_op_indices[i].second;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user