MCPcopy Create free account
hub / github.com/coin-or/CppAD / reference_count

Method reference_count

include/cppad/local/sparse/svec_setvec.hpp:104–112  ·  view source on GitHub ↗

----------------------------------------------------------------- ! Counts references to a set. \param i is the index of the set that we are counting the references to. \return if the set is empty, the return value is zero. Otherwise it is the number of sets that share the same vector. */

Source from the content-addressed store, hash-verified

102 Otherwise it is the number of sets that share the same vector.
103 */
104 size_t reference_count(size_t i) const
105 { // start data index
106 size_t start = start_[i];
107 if( start == 0 )
108 return 0;
109 //
110 // reference count
111 return data_[start];
112 }
113 // -----------------------------------------------------------------
114 /*!
115 drop a set.

Callers 2

binary_unionMethod · 0.45
binary_intersectionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected