Fixed compilation warnings

This commit is contained in:
Benoit Steiner 2015-12-07 08:12:30 -08:00
parent ad3d68400e
commit 7dfe75f445

View File

@ -531,7 +531,7 @@ struct TensorContractionEvaluatorBase
eval_right_dims[i] = m_rightImpl.dimensions()[i];
}
// 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].second = op.indices()[i].second;
}
@ -545,7 +545,7 @@ struct TensorContractionEvaluatorBase
}
// We need to flip all the pairs of contracting indices as well as
// 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].second = RDims - 1 - op.indices()[i].first;
}
@ -584,7 +584,7 @@ struct TensorContractionEvaluatorBase
for (int i = 0; i < LDims; i++) {
// find if we are contracting on index i of left tensor
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) {
contracting = true;
break;
@ -612,7 +612,7 @@ struct TensorContractionEvaluatorBase
for (int i = 0; i < RDims; i++) {
bool contracting = false;
// 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) {
contracting = true;
break;
@ -639,7 +639,7 @@ struct TensorContractionEvaluatorBase
// each tensor, we'll only look at the first tensor here.
m_rhs_inner_dim_contiguous = true;
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 right = eval_op_indices[i].second;