/external/valgrind/none/tests/linux/ |
H A D | mremap.c | 31 char *np; local 35 np = mremap(p, 1024*1024, 256*1024, 0); /* shrink, fixed */ 36 if (np == (char *)-1) 38 if (np != p) 39 fprintf(stderr, "shrink, nomove: p=%p np=%p: shrink moved?!\n", 40 p, np); 41 if (np != (char *)-1) 42 munmap(np, 256*1024); 45 np = mremap(p, 1024*1024, 256*1024, MREMAP_MAYMOVE); /* shrink, maymove */ 46 if (np [all...] |
/external/opencv3/modules/python/test/ |
H A D | leak1.py | 4 import numpy as np namespace 7 leak = np.random.random((480, 640)) * 255 8 cv.ShowImage('Leak', leak.astype(np.uint8))
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/image_processing/ |
H A D | cv_util.py | 10 np = external_modules.ImportRequiredModule('numpy') variable 16 theta1 = np.arctan2(np.float(line1[1] - line1[3]), 17 np.float(line1[0] - line1[2])) 18 theta2 = np.arctan2(np.float(line2[1] - line2[3]), 19 np.float(line2[0] - line2[2])) 21 if angle2 >= np.pi: 22 angle2 -= np.pi 25 return not abs(angle2 - (np [all...] |
H A D | cv_util_unittest.py | 10 np = external_modules.ImportRequiredModule('numpy') variable 24 l1 = np.asfarray((0, 0, 1, 0)) 25 l2 = np.asfarray((0, 0, 0, 1)) 29 np.pi / 2 - 1e-10)) 31 np.pi / 2 - 1e-10)) 32 self.assertTrue(self.cv_util.AreLinesOrthogonal(l1, l1, np.pi / 2)) 33 self.assertTrue(self.cv_util.AreLinesOrthogonal(l2, l2, np.pi / 2)) 35 l3 = np.asfarray((0, 0, 1, 1)) 36 l4 = np.asfarray((1, 1, 0, 0)) 38 np [all...] |
/external/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct/facet.numpunct.members/ |
H A D | decimal_point.pass.cpp | 24 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 25 assert(np.decimal_point() == '.'); 29 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 30 assert(np.decimal_point() == L'.');
|
H A D | grouping.pass.cpp | 24 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 25 assert(np.grouping() == std::string()); 29 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 30 assert(np.grouping() == std::string());
|
H A D | thousands_sep.pass.cpp | 24 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 25 assert(np.thousands_sep() == ','); 29 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 30 assert(np.thousands_sep() == L',');
|
H A D | falsename.pass.cpp | 24 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 25 assert(np.falsename() == std::string("false")); 29 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 30 assert(np.falsename() == std::wstring(L"false"));
|
H A D | truename.pass.cpp | 24 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 25 assert(np.truename() == std::string("true")); 29 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 30 assert(np.truename() == std::wstring(L"true"));
|
/external/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct.byname/ |
H A D | decimal_point.pass.cpp | 30 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 31 assert(np.decimal_point() == '.'); 35 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 36 assert(np.decimal_point() == L'.'); 43 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 44 assert(np.decimal_point() == '.'); 48 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 49 assert(np.decimal_point() == L'.'); 56 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 57 assert(np 61 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local [all...] |
H A D | grouping.pass.cpp | 33 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 34 assert(np.grouping() == ""); 38 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 39 assert(np.grouping() == ""); 46 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 47 assert(np.grouping() == "\3\3"); 51 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 52 assert(np.grouping() == "\3\3"); 59 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 60 assert(np 64 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local [all...] |
H A D | thousands_sep.pass.cpp | 33 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 34 assert(np.thousands_sep() == ','); 38 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 39 assert(np.thousands_sep() == L','); 46 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 47 assert(np.thousands_sep() == ','); 51 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 52 assert(np.thousands_sep() == L','); 59 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local 60 assert(np 64 const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l); local [all...] |
/external/toybox/lib/ |
H A D | portability.c | 34 ssize_t getdelim(char **linep, size_t *np, int delim, FILE *stream) argument 42 if (!linep || !np) { 47 if (*linep == NULL || *np == 0) { 48 *np = 1024; 49 *linep = calloc(1, *np); 55 if (i > *np) { 57 new_len = *np + 1024; 60 *np = new_len; 69 if (i > *np) { 74 *np 82 getline(char **linep, size_t *np, FILE *stream) argument [all...] |
/external/opencv3/samples/python2/ |
H A D | kmeans.py | 13 import numpy as np namespace 25 colors = np.zeros((1, cluster_n, 3), np.uint8) 27 colors[0,:,0] = np.arange(0, 180, 180.0/cluster_n) 37 img = np.zeros((img_size, img_size, 3), np.uint8) 38 for (x, y), label in zip(np.int32(points), labels.ravel()):
|
H A D | kalman.py | 16 import numpy as np namespace 29 state = 0.1 * np.random.randn(2, 1) 31 kalman.transitionMatrix = np.array([[1., 1.], [0., 1.]]) 32 kalman.measurementMatrix = 1. * np.ones((1, 2)) 33 kalman.processNoiseCov = 1e-5 * np.eye(2) 34 kalman.measurementNoiseCov = 1e-1 * np.ones((1, 1)) 35 kalman.errorCovPost = 1. * np.ones((2, 2)) 36 kalman.statePost = 0.1 * np.random.randn(2, 1) 40 return (np.around(img_width/2 + img_width/3*cos(angle), 0).astype(int), 41 np [all...] |
H A D | gaussian_mix.py | 3 import numpy as np namespace 13 cov = np.dot(a.T, a) + img_size*0.05*np.eye(2) 18 points = np.float32( np.vstack(points) ) 22 x, y = np.int32(mean) 24 ang = np.arctan2(u[1, 0], u[0, 0])*(180/np.pi) 25 s1, s2 = np.sqrt(w)*3.0 47 img = np [all...] |
H A D | gabor_threads.py | 17 import numpy as np namespace 25 for theta in np.arange(0, np.pi, np.pi / 16): 32 accum = np.zeros_like(img) 35 np.maximum(accum, fimg, accum) 39 accum = np.zeros_like(img) 44 np.maximum(accum, fimg, accum)
|
H A D | opt_flow.py | 3 import numpy as np namespace 18 y, x = np.mgrid[step/2:h:step, step/2:w:step].reshape(2,-1) 20 lines = np.vstack([x, y, x+fx, y+fy]).T.reshape(-1, 2, 2) 21 lines = np.int32(lines + 0.5) 31 ang = np.arctan2(fy, fx) + np.pi 32 v = np.sqrt(fx*fx+fy*fy) 33 hsv = np.zeros((h, w, 3), np.uint8) 34 hsv[...,0] = ang*(180/np [all...] |
H A D | deconvolution.py | 33 import numpy as np namespace 44 y, x = np.indices((h, w)) 45 dist = np.dstack([x, w-x-1, y, h-y-1]).min(-1) 46 w = np.minimum(np.float32(dist)/d, 1.0) 50 kern = np.ones((1, d), np.float32) 51 c, s = np.cos(angle), np.sin(angle) 52 A = np [all...] |
/external/chromium-trace/catapult/telemetry/telemetry/util/ |
H A D | color_histogram.py | 13 np = external_modules.ImportOptionalModule('numpy') variable 25 sum_func = np.sum if np is not None else sum 38 if np is not None: 39 remainder = np.multiply(hist1, n2) - np.multiply(hist2, n1) 40 cumsum = np.cumsum(remainder) 41 total = np.sum(np.abs(cumsum))
|
/external/clang/test/Analysis/ |
H A D | nullptr.cpp | 7 char *np = nullptr; local 8 *np = 0; // expected-warning{{Dereference of null pointer}} 26 char *np = nullptr; local 28 int *ip = &(((struct foo *)np)->f); 31 // *np = 0; 36 char *np = nullptr; local 37 if (np != 0) 38 *np = 0; // no-warning 40 if (np != cp) 41 *np [all...] |
/external/libcxx/test/std/localization/locale.stdcvt/ |
H A D | codecvt_utf8_utf16_in.pass.cpp | 37 const char* np = nullptr; local 38 std::codecvt_base::result r = c.in(m, n, n+4, np, w, w+2, wp); 41 assert(np == n+4); 48 r = c.in(m, n, n+3, np, w, w+2, wp); 51 assert(np == n+3); 56 r = c.in(m, n, n+2, np, w, w+2, wp); 59 assert(np == n+2); 63 r = c.in(m, n, n+1, np, w, w+2, wp); 66 assert(np == n+1); 76 const char* np local 112 const char* np = nullptr; local 151 const char* np = nullptr; local 190 const char* np = nullptr; local 226 const char* np = nullptr; local 265 const char* np = nullptr; local 304 const char* np = nullptr; local 340 const char* np = nullptr; local [all...] |
H A D | codecvt_utf16_in.pass.cpp | 37 const char* np = nullptr; local 38 std::codecvt_base::result r = c.in(m, n, n+4, np, &w, &w+1, wp); 41 assert(np == n+4); 46 r = c.in(m, n, n+2, np, &w, &w+1, wp); 49 assert(np == n+2); 54 r = c.in(m, n, n+2, np, &w, &w+1, wp); 57 assert(np == n+2); 63 r = c.in(m, n, n+2, np, &w, &w+1, wp); 66 assert(np == n+2); 76 const char* np local 115 const char* np = nullptr; local 154 const char* np = nullptr; local 193 const char* np = nullptr; local 234 const char* np = nullptr; local 273 const char* np = nullptr; local 312 const char* np = nullptr; local 351 const char* np = nullptr; local 390 const char* np = nullptr; local 429 const char* np = nullptr; local 470 const char* np = nullptr; local 510 const char* np = nullptr; local 549 const char* np = nullptr; local 588 const char* np = nullptr; local 627 const char* np = nullptr; local 666 const char* np = nullptr; local 707 const char* np = nullptr; local [all...] |
H A D | codecvt_utf8_in.pass.cpp | 37 const char* np = nullptr; local 38 std::codecvt_base::result r = c.in(m, n, n+4, np, &w, &w+1, wp); 41 assert(np == n+4); 47 r = c.in(m, n, n+3, np, &w, &w+1, wp); 50 assert(np == n+3); 55 r = c.in(m, n, n+2, np, &w, &w+1, wp); 58 assert(np == n+2); 63 r = c.in(m, n, n+1, np, &w, &w+1, wp); 66 assert(np == n+1); 76 const char* np local 115 const char* np = nullptr; local 157 const char* np = nullptr; local 196 const char* np = nullptr; local 235 const char* np = nullptr; local 277 const char* np = nullptr; local 307 const char* np = nullptr; local 337 const char* np = nullptr; local [all...] |
/external/tcpdump/ |
H A D | nameser.h | 239 #define DNS_QR(np) ((np)->flags1 & 0x80) /* response flag */ 240 #define DNS_OPCODE(np) ((((np)->flags1) >> 3) & 0xF) /* purpose of message */ 241 #define DNS_AA(np) ((np)->flags1 & 0x04) /* authoritative answer */ 242 #define DNS_TC(np) ((np)->flags1 & 0x02) /* truncated message */ 243 #define DNS_RD(np) ((np) [all...] |