void syten::DenseProduct::check_dense_dims | ( | std::array< Index, frank > const & | dimA, |
std::array< Index, srank > const & | dimB, | ||
std::array< int, frank > const & | c_a, | ||
std::array< int, srank > const & | c_b | ||
) |
Asserts that the dimensions of two tensors, as described by dimA
and dimB
, are compatible with hte product described in c_a
and c_b
.
References std::array< T >::size(), and SYTEN_ASSERT_MSG.
Referenced by syten::TensorProd::prod_impl(), syten::CudaDenseTensorImpl::prodD(), and syten::prodD().