typename Tensor<rank_1 + rank_2 - 2,
dim,
typename ProductType<Number, OtherNumber>::type>::tensor_type
- result;
+ result{};
TensorAccessors::internal::
ReorderedIndexView<0, rank_2, const Tensor<rank_2, dim, OtherNumber>>
typename Tensor<rank_1 + rank_2 - 2,
dim,
typename ProductType<Number, OtherNumber>::type>::tensor_type
- result;
+ result{};
TensorAccessors::contract<1, rank_1, rank_2, dim>(result, reord_01, reord_02);
return result;
}
typename Tensor<rank_1 + rank_2 - 4,
dim,
typename ProductType<Number, OtherNumber>::type>::tensor_type
- result;
+ result{};
TensorAccessors::contract<2, rank_1, rank_2, dim>(result, reord_3, reord_4);
return result;
}
scalar_product(const Tensor<rank, dim, Number> & left,
const Tensor<rank, dim, OtherNumber> &right)
{
- typename ProductType<Number, OtherNumber>::type result;
+ typename ProductType<Number, OtherNumber>::type result{};
TensorAccessors::contract<rank, rank, rank, dim>(result, left, right);
return result;
}
typename Tensor<rank_1 + rank_2,
dim,
typename ProductType<Number, OtherNumber>::type>::tensor_type
- result;
+ result{};
TensorAccessors::contract<0, rank_1, rank_2, dim>(result, src1, src2);
return result;
}