MCPcopy Create free account
hub / github.com/ai-techsystems/deepC / min

Method min

include/core/tensor.h:502–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500 return tensor_proto;
501 }
502 T min() const {
503 assert(_mem_layout);
504 T result = _mem_layout[0];
505 for (size_t i = 1; i < this->length(); i++)
506 result = result > _mem_layout[i] ? _mem_layout[i] : result;
507 return result;
508 }
509 T max() const {
510 assert(_mem_layout);
511 T result = _mem_layout[0];

Callers 6

Cwise_min.cppFile · 0.80
mainFunction · 0.80
test_Min1DMethod · 0.80
test_Min2DMethod · 0.80
test_Min3DMethod · 0.80
test_Min4DMethod · 0.80

Calls 1

lengthMethod · 0.45

Tested by 4

test_Min1DMethod · 0.64
test_Min2DMethod · 0.64
test_Min3DMethod · 0.64
test_Min4DMethod · 0.64