MCPcopy Create free account
hub / github.com/IBAMR/IBAMR / copy_array

Function copy_array

ibtk/contrib/boost/boost/multi_array/copy_array.hpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53template <typename Array1, typename Array2>
54void copy_array (Array1& source, Array2& dest) {
55 BOOST_ASSERT(std::equal(source.shape(),source.shape()+source.num_dimensions(),
56 dest.shape()));
57 // Dispatch to the proper function
58 typedef typename Array1::element element_type;
59 copy_dispatch<element_type>::
60 copy_array(source.begin(),source.end(),dest.begin());
61}
62
63
64} // namespace multi_array

Callers 1

copy_arrayMethod · 0.85

Calls 5

equalFunction · 0.50
shapeMethod · 0.45
num_dimensionsMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected