MCPcopy Create free account
hub / github.com/NanoComp/meep / min

Function min

src/vec.cpp:131–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131vec min(const vec &vec1, const vec &vec2) {
132 vec m(vec1.dim);
133 LOOP_OVER_DIRECTIONS(vec1.dim, d) {
134 m.set_direction(d, std::min(vec1.in_direction(d), vec2.in_direction(d)));
135 }
136 return m;
137}
138
139vec max(const vec &vec1, const vec &vec2) {
140 vec m(vec1.dim);

Callers 15

geom_epsilonMethod · 0.70
dft_chunkMethod · 0.70
max_decimationMethod · 0.70
process_dft_componentMethod · 0.70
h5_findsize_chunkloopFunction · 0.70
h5_output_chunkloopFunction · 0.70
volumeMethod · 0.70
LOOP_OVER_DIRECTIONSFunction · 0.70
loop_in_chunksMethod · 0.70

Calls 3

LOOP_OVER_DIRECTIONSFunction · 0.70
set_directionMethod · 0.45
in_directionMethod · 0.45

Tested by

no test coverage detected