bool syten::hasMember | ( | std::vector< T > const & | v, |
T const & | e | ||
) |
Returns true if the vector has an element comparing equal to the second argument.
v | the haystack |
e | the needle |
e
in v
, false otherwise. Referenced by syten::Cuda::cuda_handle_error_impl(), syten::MPS::DMRG::Worker::expand_to_left(), syten::MPS::DMRG::Worker::expand_to_right(), syten::STensorImpl::Autodiff::ComputeNode::find_origin_node(), genReps(), syten::STensorImpl::STensorProxy::get_autodiff(), syten::STensorImpl::STensor::get_autodiff_id(), syten::Tensor< rank >::getAvgBlocksize(), syten::Tensor< rank >::getReducedDim(), syten::Tensor< rank >::getTotalDim(), syten::STensorImpl::STensor::set_autodiff_node(), syten::STensorImpl::STensorProxy::set_autodiff_node(), syten::MPS::DMRG::Worker::solveLocal(), syten::MPS::DMRG::Worker::solveLocalTwoSite(), syten::IPEPS::State::State(), syten::DenseProduct::validateProductSpecifier(), and syten::Cuda::CudaAllocator::~CudaAllocator().