We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1c8bd6 commit 7c5197dCopy full SHA for 7c5197d
1 file changed
src/tamm/tamm_utils.hpp
@@ -1615,8 +1615,11 @@ template<typename TensorType>
1615
void from_block_cyclic_tensor(Tensor<TensorType> bc_tensor, Tensor<TensorType> tensor,
1616
bool is_bc = true) {
1617
const auto ndims = bc_tensor.num_modes();
1618
- EXPECTS(ndims == 2);
1619
- if(is_bc) EXPECTS(bc_tensor.is_block_cyclic());
+
+ if(is_bc) {
1620
+ EXPECTS(ndims == 2);
1621
+ EXPECTS(bc_tensor.is_block_cyclic());
1622
+ }
1623
EXPECTS(bc_tensor.kind() == TensorBase::TensorKind::dense);
1624
EXPECTS(bc_tensor.distribution().kind() == DistributionKind::dense);
1625
0 commit comments