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

Method main

dlib/java/swig_test.java:122–253  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

120 }
121
122 public static void main(String[] args)
123 {
124 {
125 float[] arr = new float[8];
126
127 for (int round = 0; round < 100; ++round)
128 {
129 zero(arr); global.assign(arr);
130 assertIs28(sum(arr));
131 zero(arr); global.assign_crit(arr);
132 assertIs28(sum(arr));
133 }
134 for (int round = 0; round < 100; ++round)
135 {
136 zero(arr); global.assign(arr);
137 assertIs28(sum(arr));
138 assertIs28(global.sum(arr));
139 zero(arr); global.assign_crit(arr);
140 assertIs28(sum(arr));
141 assertIs28(global.sum_crit(arr));
142 }
143 }
144 {
145 double[] arr = new double[8];
146
147 for (int round = 0; round < 100; ++round)
148 {
149 zero(arr); global.assign(arr);
150 assertIs28(sum(arr));
151 zero(arr); global.assign_crit(arr);
152 assertIs28(sum(arr));
153 }
154 for (int round = 0; round < 100; ++round)
155 {
156 zero(arr); global.assign(arr);
157 assertIs28(sum(arr));
158 assertIs28(global.sum(arr));
159 zero(arr); global.assign_crit(arr);
160 assertIs28(sum(arr));
161 assertIs28(global.sum_crit(arr));
162 }
163 }
164 {
165 byte[] arr = new byte[8];
166
167 for (int round = 0; round < 100; ++round)
168 {
169 zero(arr); global.assign(arr);
170 assertIs28(sum(arr));
171 zero(arr); global.assign_crit(arr);
172 assertIs28(sum(arr));
173 }
174 for (int round = 0; round < 100; ++round)
175 {
176 zero(arr); global.assign(arr);
177 assertIs28(sum(arr));
178 assertIs28(global.sum(arr));
179 zero(arr); global.assign_crit(arr);

Callers

nothing calls this directly

Calls 5

zeroMethod · 0.95
assertIs28Method · 0.95
sumMethod · 0.95
assertIsEqualMethod · 0.95
assignMethod · 0.45

Tested by

no test coverage detected