MCPcopy Create free account
hub / github.com/davisking/dlib / sum

Method sum

dlib/java/swig_test.java:13–19  ·  view source on GitHub ↗
(long[] arr)

Source from the content-addressed store, hash-verified

11public class swig_test
12{
13 public static int sum(long[] arr)
14 {
15 int s = 0;
16 for (int i = 0; i < arr.length; ++i)
17 s += arr[i];
18 return s;
19 }
20 public static void zero(long[] arr)
21 {
22 for (int i = 0; i < arr.length; ++i)

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected