Home
last modified time | relevance | path

Searched refs:vectors (Results 1 – 25 of 632) sorted by relevance

12345678910>>...26

/third_party/glib/gio/tests/
Dmemory-output-stream.c312 GOutputVector vectors[3]; in test_writev() local
318 vectors[0].buffer = buffer; in test_writev()
319 vectors[0].size = 5; in test_writev()
321 vectors[1].buffer = buffer + vectors[0].size; in test_writev()
322 vectors[1].size = 12; in test_writev()
324 vectors[2].buffer = buffer + vectors[0].size + vectors[1].size; in test_writev()
325 vectors[2].size = 3; in test_writev()
331 …res = g_output_stream_writev_all (mo, vectors, G_N_ELEMENTS (vectors), &bytes_written, NULL, &erro… in test_writev()
355 GOutputVector vectors[3]; in test_writev_nonblocking() local
361 vectors[0].buffer = buffer; in test_writev_nonblocking()
[all …]
Dunix-streams.c403 GOutputVector vectors[3]; in test_read_write_writev_thread() local
405 vectors[0].buffer = data->write_data; in test_read_write_writev_thread()
406 vectors[0].size = 256; in test_read_write_writev_thread()
407 vectors[1].buffer = data->write_data + 256; in test_read_write_writev_thread()
408 vectors[1].size = 256; in test_read_write_writev_thread()
409 vectors[2].buffer = data->write_data + 512; in test_read_write_writev_thread()
410 vectors[2].size = 512; in test_read_write_writev_thread()
412 …res = g_output_stream_writev_all (data->os, vectors, G_N_ELEMENTS (vectors), &bytes_written, NULL,… in test_read_write_writev_thread()
556 GOutputVector vectors[4]; in test_writev_wouldblock()
583 vectors[0].buffer = data_write; in test_writev_wouldblock()
[all …]
Dfile.c1895 vectors[] = in test_copy_preserve_mode() local
1919 for (i = 0; i < G_N_ELEMENTS (vectors); i++) in test_copy_preserve_mode()
1926 guint32 romode = vectors[i].source_mode; in test_copy_preserve_mode()
1950 if (!vectors[i].create_destination_before_copy) in test_copy_preserve_mode()
1956 g_file_copy (tmpfile, dest_tmpfile, vectors[i].copy_flags, in test_copy_preserve_mode()
1966 g_assert_cmpint (dest_mode & ~S_IFMT, ==, vectors[i].expected_destination_mode); in test_copy_preserve_mode()
2262 test_writev_helper (GOutputVector *vectors, in test_writev_helper() argument
2284 …res = g_output_stream_writev_all (ostream, vectors, n_vectors, use_bytes_written ? &bytes_written … in test_writev_helper()
2311 GOutputVector vectors[3]; in test_writev() local
2316 vectors[0].buffer = buffer; in test_writev()
[all …]
Dgdbus-message.c154 vectors[] = in message_bytes_needed() local
189 for (i = 0; i < G_N_ELEMENTS (vectors); i++) in message_bytes_needed()
196 bytes_needed = g_dbus_message_bytes_needed ((guchar *) vectors[i].blob, in message_bytes_needed()
197 G_N_ELEMENTS (vectors[i].blob), in message_bytes_needed()
200 if (vectors[i].expected_bytes_needed < 0) in message_bytes_needed()
204 g_assert_cmpint (bytes_needed, ==, vectors[i].expected_bytes_needed); in message_bytes_needed()
Dsocket-service.c327 GOutputVector *vectors; member
345 g_free (data->vectors); in writtenv_read_write_async_cb()
381 data->vectors = g_new0 (GOutputVector, 3); in connected_read_writev_async_cb()
387 data->vectors[0].buffer = data->data; in connected_read_writev_async_cb()
388 data->vectors[0].size = 5; in connected_read_writev_async_cb()
389 data->vectors[1].buffer = data->data + 5; in connected_read_writev_async_cb()
390 data->vectors[1].size = 10; in connected_read_writev_async_cb()
391 data->vectors[2].buffer = data->data + 15; in connected_read_writev_async_cb()
392 data->vectors[2].size = 5; in connected_read_writev_async_cb()
395 data->vectors, in connected_read_writev_async_cb()
/third_party/skia/docs/examples/
DPoint_DotProduct.cpp10 SkVector vectors[][2] = {{{50, 2}, {-14, 20}}, {{0, 50}, {-50, 0}}, {{-20, 25}, {25, -20}},
15 canvas->drawLine(center[i], center[i] + vectors[i][0], paint);
16 canvas->drawLine(center[i], center[i] + vectors[i][1], paint);
18 str.printf("dot = %g", SkPoint::DotProduct(vectors[i][0], vectors[i][1]));
DPoint_dot.cpp10 SkVector vectors[][2] = {{{50, 2}, {-14, 20}}, {{0, 50}, {-50, 0}}, {{-20, 25}, {25, -20}},
15 canvas->drawLine(center[i], center[i] + vectors[i][0], paint);
16 canvas->drawLine(center[i], center[i] + vectors[i][1], paint);
18 str.printf("dot = %g", vectors[i][0].dot(vectors[i][1]));
DPoint_cross.cpp10 SkVector vectors[][2] = {{{50, 2}, {-14, 20}}, {{0, 50}, {-50, 0}}, {{-20, 25}, {25, -20}},
16 canvas->drawLine(center[i], center[i] + vectors[i][0], paint);
18 canvas->drawLine(center[i], center[i] + vectors[i][1], paint);
20 SkScalar cross = vectors[i][0].cross(vectors[i][1]);
DPoint_CrossProduct.cpp10 SkVector vectors[][2] = {{{50, 2}, {-14, 20}}, {{0, 50}, {-50, 0}}, {{-20, 25}, {25, -20}},
16 canvas->drawLine(center[i], center[i] + vectors[i][0], paint);
18 canvas->drawLine(center[i], center[i] + vectors[i][1], paint);
20 SkScalar cross = SkPoint::CrossProduct(vectors[i][1], vectors[i][0]);
/third_party/flutter/skia/docs/examples/
DPoint_DotProduct.cpp10 SkVector vectors[][2] = {{{50, 2}, {-14, 20}}, {{0, 50}, {-50, 0}}, {{-20, 25}, {25, -20}},
15 canvas->drawLine(center[i], center[i] + vectors[i][0], paint);
16 canvas->drawLine(center[i], center[i] + vectors[i][1], paint);
18 str.printf("dot = %g", SkPoint::DotProduct(vectors[i][0], vectors[i][1]));
DPoint_dot.cpp10 SkVector vectors[][2] = {{{50, 2}, {-14, 20}}, {{0, 50}, {-50, 0}}, {{-20, 25}, {25, -20}},
15 canvas->drawLine(center[i], center[i] + vectors[i][0], paint);
16 canvas->drawLine(center[i], center[i] + vectors[i][1], paint);
18 str.printf("dot = %g", vectors[i][0].dot(vectors[i][1]));
DPoint_CrossProduct.cpp10 SkVector vectors[][2] = {{{50, 2}, {-14, 20}}, {{0, 50}, {-50, 0}}, {{-20, 25}, {25, -20}},
16 canvas->drawLine(center[i], center[i] + vectors[i][0], paint);
18 canvas->drawLine(center[i], center[i] + vectors[i][1], paint);
20 SkScalar cross = SkPoint::CrossProduct(vectors[i][1], vectors[i][0]);
DPoint_cross.cpp10 SkVector vectors[][2] = {{{50, 2}, {-14, 20}}, {{0, 50}, {-50, 0}}, {{-20, 25}, {25, -20}},
16 canvas->drawLine(center[i], center[i] + vectors[i][0], paint);
18 canvas->drawLine(center[i], center[i] + vectors[i][1], paint);
20 SkScalar cross = vectors[i][0].cross(vectors[i][1]);
/third_party/glib/gio/
Dgpollableoutputstream.c50 const GOutputVector *vectors,
168 const GOutputVector *vectors, in g_pollable_output_stream_default_writev_nonblocking() argument
184 if (_bytes_written > G_MAXSIZE - vectors[i].size) in g_pollable_output_stream_default_writev_nonblocking()
187 res = iface->write_nonblocking (stream, vectors[i].buffer, vectors[i].size, &err); in g_pollable_output_stream_default_writev_nonblocking()
217 if ((gsize) res < vectors[i].size) in g_pollable_output_stream_default_writev_nonblocking()
331 const GOutputVector *vectors, in g_pollable_output_stream_writev_nonblocking() argument
345 g_return_val_if_fail (vectors != NULL || n_vectors == 0, G_POLLABLE_RETURN_FAILED); in g_pollable_output_stream_writev_nonblocking()
362 writev_nonblocking (stream, vectors, n_vectors, &_bytes_written, error); in g_pollable_output_stream_writev_nonblocking()
Dgoutputstream.c76 const GOutputVector *vectors,
82 const GOutputVector *vectors,
362 const GOutputVector *vectors, in g_output_stream_writev() argument
376 g_return_val_if_fail (vectors != NULL || n_vectors == 0, FALSE); in g_output_stream_writev()
393 res = class->writev_fn (stream, vectors, n_vectors, &_bytes_written, cancellable, error); in g_output_stream_writev()
448 GOutputVector *vectors, in g_output_stream_writev_all() argument
461 g_return_val_if_fail (vectors != NULL || n_vectors == 0, FALSE); in g_output_stream_writev_all()
469 if (to_be_written > G_MAXSIZE - vectors[i].size) in g_output_stream_writev_all()
475 to_be_written += vectors[i].size; in g_output_stream_writev_all()
484 res = g_output_stream_writev (stream, vectors, n_vectors, &n_written, cancellable, error); in g_output_stream_writev_all()
[all …]
Dgunixoutputstream.c95 const GOutputVector *vectors,
109 const GOutputVector *vectors,
398 const GOutputVector *vectors, in g_unix_output_stream_writev() argument
425 iov = (struct iovec *) vectors; in g_unix_output_stream_writev()
435 iov[i].iov_base = (void *)vectors[i].buffer; in g_unix_output_stream_writev()
436 iov[i].iov_len = vectors[i].size; in g_unix_output_stream_writev()
578 const GOutputVector *vectors, in g_unix_output_stream_pollable_writev_nonblocking() argument
602 iov = (struct iovec *) vectors; in g_unix_output_stream_pollable_writev_nonblocking()
612 iov[i].iov_base = (void *)vectors[i].buffer; in g_unix_output_stream_pollable_writev_nonblocking()
613 iov[i].iov_len = vectors[i].size; in g_unix_output_stream_pollable_writev_nonblocking()
/third_party/mindspore/tests/ut/python/parallel/
Dtest_auto_parallel_segment_min.py36 def construct(self, vectors, index): argument
37 predict = self.network(vectors, index)
46 def construct(self, vectors, index): argument
47 return grad_all(self.network)(vectors, index)
57 def construct(self, vectors, index): argument
58 out = self.merge_op(vectors, index, self.num_segments)
Dtest_auto_parallel_segment_sum.py36 def construct(self, vectors, index): argument
37 predict = self.network(vectors, index)
46 def construct(self, vectors, index): argument
47 return grad_all(self.network)(vectors, index)
57 def construct(self, vectors, index): argument
58 out = self.merge_op(vectors, index, self.num_segments)
/third_party/flatbuffers/tests/
Dnative_type_test_generated.h111 std::vector<Native::Vector3D> vectors{};
125 const flatbuffers::Vector<const Geometry::Vector3D *> *vectors() const { in vectors() function
140 verifier.VerifyVector(vectors()) && in Verify()
154 void add_vectors(flatbuffers::Offset<flatbuffers::Vector<const Geometry::Vector3D *>> vectors) { in add_vectors()
155 fbb_.AddOffset(ApplicationData::VT_VECTORS, vectors); in add_vectors()
173 flatbuffers::Offset<flatbuffers::Vector<const Geometry::Vector3D *>> vectors = 0,
177 builder_.add_vectors(vectors);
183 const std::vector<Geometry::Vector3D> *vectors = nullptr,
185 auto vectors__ = vectors ? _fbb.CreateVectorOfStructs<Geometry::Vector3D>(*vectors) : 0;
204 …{ auto _e = vectors(); if (_e) { _o->vectors.resize(_e->size()); for (flatbuffers::uoffset_t _i = … in UnPackTo()
[all …]
/third_party/openGLES/extensions/SGIX/
DSGIX_fragment_lighting_space.txt26 This extension specifies that the fragment lighting vectors including
27 the view vector, light vectors, halfangle vectors and
28 spotlight direction vectors, be transformed into either eye-space,
34 the ability to transform other shading vectors to the same space
44 concept of a per-vertex matrix which is applied to lighting vectors.
52 like get normal vectors from texture.
94 binormal and normal vectors and using that matrix to transform
95 eye-space shading vectors into tangent space on a
96 per-vertex basis. The vectors are normalized before being passed
131 n to (0,0,1), ie, maps vectors to tangent space.
[all …]
/third_party/skia/third_party/externals/opengl-registry/extensions/SGIX/
DSGIX_fragment_lighting_space.txt26 This extension specifies that the fragment lighting vectors including
27 the view vector, light vectors, halfangle vectors and
28 spotlight direction vectors, be transformed into either eye-space,
34 the ability to transform other shading vectors to the same space
44 concept of a per-vertex matrix which is applied to lighting vectors.
52 like get normal vectors from texture.
94 binormal and normal vectors and using that matrix to transform
95 eye-space shading vectors into tangent space on a
96 per-vertex basis. The vectors are normalized before being passed
131 n to (0,0,1), ie, maps vectors to tangent space.
[all …]
/third_party/mindspore/tests/ut/python/mindrecord/
Dutils.py198 vectors = [dictionary.get('[CLS]')]
199 vectors += [dictionary.get(i) if i in dictionary
204 vectors += [dictionary.get('[SEP]')]
205 input_, mask, segment = inputs(vectors)
245 def inputs(vectors, maxlen=50): argument
246 length = len(vectors)
248 return vectors[0:maxlen], [1] * maxlen, [0] * maxlen
249 input_ = vectors + [0] * (maxlen - length)
/third_party/glib/tests/gobject/
Dparamspec-test.c298 vectors[] = in test_param_spec_variant_cmp() local
313 for (i = 0; i < G_N_ELEMENTS (vectors); i++) in test_param_spec_variant_cmp()
321 vectors[i].pspec_type, in test_param_spec_variant_cmp()
326 … g_value_set_variant (&v1, (vectors[i].v1 != NULL) ? g_variant_new_parsed (vectors[i].v1) : NULL); in test_param_spec_variant_cmp()
329 … g_value_set_variant (&v2, (vectors[i].v2 != NULL) ? g_variant_new_parsed (vectors[i].v2) : NULL); in test_param_spec_variant_cmp()
333 switch (vectors[i].expected_result) in test_param_spec_variant_cmp()
338 g_assert_cmpint (cmp, ==, vectors[i].expected_result); in test_param_spec_variant_cmp()
/third_party/skia/gm/
Dimagescalealigned.cpp26 const SkVector vectors[] = { { 1, 0 }, { 0, 1 } }; in onOnceBeforeDraw() local
28 for (size_t i = 0; i < SK_ARRAY_COUNT(vectors); ++i) { in onOnceBeforeDraw()
31 set.fVector = vectors[i]; in onOnceBeforeDraw()
32 set.fImages.push_back() = MakeImage(vectors[i], SK_ColorGREEN); in onOnceBeforeDraw()
34 set.fImages.push_back() = MakeImage(vectors[i], SK_ColorRED); in onOnceBeforeDraw()
36 set.fImages.push_back() = MakeImage(vectors[i], SK_ColorGREEN); in onOnceBeforeDraw()
/third_party/flutter/skia/gm/
Dimagescalealigned.cpp27 const SkVector vectors[] = { { 1, 0 }, { 0, 1 } }; in onOnceBeforeDraw() local
29 for (size_t i = 0; i < SK_ARRAY_COUNT(vectors); ++i) { in onOnceBeforeDraw()
32 set.fVector = vectors[i]; in onOnceBeforeDraw()
33 set.fImages.push_back() = MakeImage(vectors[i], SK_ColorGREEN); in onOnceBeforeDraw()
35 set.fImages.push_back() = MakeImage(vectors[i], SK_ColorRED); in onOnceBeforeDraw()
37 set.fImages.push_back() = MakeImage(vectors[i], SK_ColorGREEN); in onOnceBeforeDraw()

12345678910>>...26