Macaulay2 Engine
Loading...
Searching...
No Matches

◆ M2_arrayint_to_stdvector()

template<typename T>
std::vector< T > M2_arrayint_to_stdvector ( M2_arrayint arr)
inline

Definition at line 96 of file util.hpp.

97{
98 std::vector<T> result;
99 result.reserve(arr->len);
100 for (auto i = 0; i < arr->len; i++) result.emplace_back(arr->array[i]);
101 return result;
102}
VALGRIND_MAKE_MEM_DEFINED & result(result)

References result().

Referenced by all_have_pure_powers(), Matrix::basis(), GBComputation::choose_gb(), F4Computation::F4Computation(), IM2_Matrix_homogenize(), IM2_RingElement_homogenize(), IM2_RingElement_homogenize_to_degree(), rawGetPart(), rawGetParts(), rawLUincremental(), rawMonoid(), rawNCBasis(), rawRingM2FreeAlgebra(), rawWeightRange(), TEST(), TEST(), TEST(), TEST(), and ExponentVector< int, true >::weight().