Home
last modified time | relevance | path

Searched refs:floats (Results 1 – 25 of 334) sorted by relevance

12345678910>>...14

/external/snakeyaml/src/test/java/org/yaml/snakeyaml/array/
DFloatArr.java21 private float[] floats; field in FloatArr
26 public FloatArr(float[] floats) { in FloatArr() argument
27 this.floats = floats; in FloatArr()
31 return Arrays.toString(floats); in toString()
35 return floats; in getFloats()
38 public void setFloats(float[] floats) { in setFloats() argument
39 this.floats = floats; in setFloats()
DPrimitiveArrayTest.java36 private final float[] floats = new float[] { 0.1f, 3.1415f }; field in PrimitiveArrayTest
46 + Arrays.toString(floats) + " ]\n" + "- " + pkg + ".DoubleArr [ " in testValidConstructor()
58 Assert.assertArrayEquals(floats, ((FloatArr) wrappers.get(4)).getFloats(), 0.001f); in testValidConstructor()
169 FloatArr floatArr = new FloatArr(floats); in testCycle()
/external/deqp/external/openglcts/modules/gl/
Dgl3cGPUShader5Tests.cpp851 static const glw::GLfloat floats[4] = { -1.0f, -1234.0f, 1.0f, 1234.0f }; in iterate() local
859 { Utils::VARIABLE_TYPE_FLOAT, "float", floats }, in iterate()
863 { Utils::VARIABLE_TYPE_INT, "int", floats }, in iterate()
864 { Utils::VARIABLE_TYPE_FLOAT, "float", floats }, in iterate()
869 { Utils::VARIABLE_TYPE_VEC2, "vec2", floats }, in iterate()
873 { Utils::VARIABLE_TYPE_IVEC2, "ivec2", floats }, in iterate()
874 { Utils::VARIABLE_TYPE_VEC2, "vec2", floats }, in iterate()
879 { Utils::VARIABLE_TYPE_VEC3, "vec3", floats }, in iterate()
883 { Utils::VARIABLE_TYPE_IVEC3, "ivec3", floats }, in iterate()
884 { Utils::VARIABLE_TYPE_VEC3, "vec3", floats }, in iterate()
[all …]
/external/skia/tests/
DF16StagesTest.cpp14 float floats[16] = { in DEF_TEST() local
21 SkRasterPipeline_MemoryCtx f32 = { floats, 0 }, in DEF_TEST()
45 REPORTER_ASSERT(r, floats[0] == 0.00f); in DEF_TEST()
46 REPORTER_ASSERT(r, floats[1] == 0.25f); in DEF_TEST()
47 REPORTER_ASSERT(r, floats[2] == 0.50f); in DEF_TEST()
48 REPORTER_ASSERT(r, floats[3] == 1.00f); in DEF_TEST()
49 REPORTER_ASSERT(r, floats[4] == -1.25f); in DEF_TEST()
50 REPORTER_ASSERT(r, floats[5] == -0.50f); in DEF_TEST()
51 REPORTER_ASSERT(r, floats[6] == 1.25f); in DEF_TEST()
52 REPORTER_ASSERT(r, floats[7] == 2.00f); in DEF_TEST()
/external/skqp/tests/
DF16StagesTest.cpp14 float floats[16] = { in DEF_TEST() local
21 SkRasterPipeline_MemoryCtx f32 = { floats, 0 }, in DEF_TEST()
45 REPORTER_ASSERT(r, floats[0] == 0.00f); in DEF_TEST()
46 REPORTER_ASSERT(r, floats[1] == 0.25f); in DEF_TEST()
47 REPORTER_ASSERT(r, floats[2] == 0.50f); in DEF_TEST()
48 REPORTER_ASSERT(r, floats[3] == 1.00f); in DEF_TEST()
49 REPORTER_ASSERT(r, floats[4] == -1.25f); in DEF_TEST()
50 REPORTER_ASSERT(r, floats[5] == -0.50f); in DEF_TEST()
51 REPORTER_ASSERT(r, floats[6] == 1.25f); in DEF_TEST()
52 REPORTER_ASSERT(r, floats[7] == 2.00f); in DEF_TEST()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dround_trip_packed_literal_test.cc50 absl::Span<float> floats(absl::bit_cast<float*>(data.data()), 2); in TEST_F()
51 floats[0] = 42.0; in TEST_F()
52 floats[1] = 24.0; in TEST_F()
72 absl::Span<float> floats(absl::bit_cast<float*>(data.data()), 4); in TEST_F()
74 floats[0] = 42.0; // y=0,x=0 in TEST_F()
75 floats[1] = 24.0; // y=0,x=1 in TEST_F()
76 floats[2] = 64.0; // y=1,x=0 in TEST_F()
77 floats[3] = 46.0; // y=1,x=1 in TEST_F()
105 absl::Span<float> floats(absl::bit_cast<float*>(data.data()), 4); in TEST_F()
107 floats[0] = 42.0; // y=0,x=0 in TEST_F()
[all …]
/external/eigen/unsupported/test/
Dcxx11_tensor_cast_float16_cuda.cu29 Tensor<float, 1> floats(num_elem); in test_cuda_conversion() local
30 floats.setRandom(); in test_cuda_conversion()
43 gpu_device.memcpyHostToDevice(d_float, floats.data(), num_elem*sizeof(float)); in test_cuda_conversion()
66 Tensor<float, 1> floats(num_elem); in test_fallback_conversion() local
67 floats.setRandom(); in test_fallback_conversion()
69 Eigen::Tensor<Eigen::half, 1> halfs = floats.cast<Eigen::half>(); in test_fallback_conversion()
73 VERIFY_IS_APPROX(floats(i), conv(i)); in test_fallback_conversion()
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/Mips/cconv/
Darguments-float.ll21 @floats = global [11 x float] zeroinitializer
108 %0 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 1
110 %1 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 2
112 %2 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 3
114 %3 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 4
116 %4 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 5
118 %5 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 6
120 %6 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 7
122 %7 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 8
124 %8 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 9
[all …]
Darguments-hard-float.ll21 @floats = global [11 x float] zeroinitializer
90 %0 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 1
92 %1 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 2
94 %2 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 3
96 %3 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 4
98 %4 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 5
100 %5 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 6
102 %6 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 7
104 %7 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 8
106 %8 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 9
[all …]
Darguments-hard-float-varargs.ll22 @floats = global [11 x float] zeroinitializer
93 %0 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 1
100 %1 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 2
109 ; SYM32-DAG: addiu [[R2:\$[0-9]+]], ${{[0-9]+}}, %lo(floats)
110 ; SYM64-DAG: daddiu [[R2:\$[0-9]+]], ${{[0-9]+}}, %lo(floats)
132 ; arguments-float.ll, GCC doesn't agree with MD00305 and treats floats as 4
/external/llvm/test/CodeGen/Mips/cconv/
Darguments-float.ll21 @floats = global [11 x float] zeroinitializer
108 %0 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 1
110 %1 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 2
112 %2 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 3
114 %3 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 4
116 %4 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 5
118 %5 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 6
120 %6 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 7
122 %7 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 8
124 %8 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 9
[all …]
Darguments-hard-float.ll21 @floats = global [11 x float] zeroinitializer
90 %0 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 1
92 %1 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 2
94 %2 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 3
96 %3 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 4
98 %4 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 5
100 %5 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 6
102 %6 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 7
104 %7 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 8
106 %8 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 9
[all …]
Darguments-hard-float-varargs.ll22 @floats = global [11 x float] zeroinitializer
93 %0 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 1
100 %1 = getelementptr [11 x float], [11 x float]* @floats, i32 0, i32 2
109 ; SYM32-DAG: addiu [[R2:\$[0-9]+]], ${{[0-9]+}}, %lo(floats)
110 ; SYM64-DAG: ld [[R2:\$[0-9]]], %got_disp(floats)(
132 ; arguments-float.ll, GCC doesn't agree with MD00305 and treats floats as 4
/external/llvm/test/CodeGen/SystemZ/
Dvec-conv-01.ll71 %floats = load <2 x float>, <2 x float> *%ptr
72 %dwords = fptosi <2 x float> %floats to <2 x i64>
78 %floats = load <2 x float>, <2 x float> *%ptr
79 %dwords = fptoui <2 x float> %floats to <2 x i64>
85 %floats = sitofp <2 x i64> %dwords to <2 x float>
86 store <2 x float> %floats, <2 x float> *%ptr
92 %floats = uitofp <2 x i64> %dwords to <2 x float>
93 store <2 x float> %floats, <2 x float> *%ptr
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/SystemZ/
Dvec-conv-01.ll71 %floats = load <2 x float>, <2 x float> *%ptr
72 %dwords = fptosi <2 x float> %floats to <2 x i64>
78 %floats = load <2 x float>, <2 x float> *%ptr
79 %dwords = fptoui <2 x float> %floats to <2 x i64>
85 %floats = sitofp <2 x i64> %dwords to <2 x float>
86 store <2 x float> %floats, <2 x float> *%ptr
92 %floats = uitofp <2 x i64> %dwords to <2 x float>
93 store <2 x float> %floats, <2 x float> *%ptr
/external/tensorflow/tensorflow/compiler/xla/tools/
Dhex_floats_to_packed_literal.cc59 std::vector<float> floats; in main() local
67 floats.push_back(value); in main()
70 tensorflow::StringPiece content(absl::bit_cast<const char*>(floats.data()), in main()
71 floats.size() * sizeof(float)); in main()
/external/deqp/modules/gles3/scripts/
Dgen-invalid-implicit-conversions.py98 floats = ['float', 'vec2', 'vec3', 'vec4'] variable
103 caseFpInt = createCase(op, floats, sintegers)
105 caseFpUint = createCase(op, floats, uintegers)
/external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/
DTensorTest.java114 float[] floats = {1f, 2f, 3f, 4f}; in createWithTypedBuffer() local
125 try (Tensor<Float> t = Tensor.create(shape, FloatBuffer.wrap(floats))) { in createWithTypedBuffer() argument
126 float[] actual = new float[floats.length]; in createWithTypedBuffer()
127 assertArrayEquals(floats, t.copyTo(actual), EPSILON_F); in createWithTypedBuffer()
147 try (Tensor<Float> t = Tensor.create(new long[floats.length + 1], FloatBuffer.wrap(floats))) { in createWithTypedBuffer() argument
168 float[] floats = {1f, 2f, 3f}; in writeTo() local
174 Tensor<Float> tfloats = Tensors.create(floats); in writeTo()
187 assertEquals(floats[0], bbuf.asFloatBuffer().get(0), EPSILON); in writeTo()
227 assertEquals(floats[0], buf.get(0), EPSILON); in writeTo()
/external/deqp/modules/gles2/scripts/
Dgen-invalid-implicit-conversions.py93 floats = ['float', 'vec2', 'vec3', 'vec4'] variable
97 caseFpInt = createCase(op, floats, sintegers)
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dprng.cc164 auto floats = BitcastConvertType(bits, F32); in StatelessRngUniformF32() local
168 floats = floats - ConstantR0<float>(builder, 1.0f); in StatelessRngUniformF32()
170 return floats * (maxval - minval) + minval; in StatelessRngUniformF32()
/external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/op/core/
DConstantTest.java89 float[] floats = {1, 2, 3, 4}; in createFloatBuffer() local
95 Constant<Float> op = Constant.create(scope, shape, FloatBuffer.wrap(floats)); in createFloatBuffer()
97 float[] actual = new float[floats.length]; in createFloatBuffer()
98 assertArrayEquals(floats, result.expect(Float.class).copyTo(actual), EPSILON); in createFloatBuffer()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_FakeQuantWithMinMaxVarsPerChannel.pbtxt5 `[b, d]` `[b, h, w, d]` via per-channel floats `min` and `max` of shape `[d]`
11 then de-quantized and output as floats in `[min; max]` interval.
/external/libchrome/base/android/
Djni_array.cc103 JNIEnv* env, const float* floats, size_t len) { in ToJavaFloatArray() argument
109 float_array, 0, len, reinterpret_cast<const jfloat*>(floats)); in ToJavaFloatArray()
117 const std::vector<float>& floats) { in ToJavaFloatArray() argument
118 return ToJavaFloatArray(env, floats.data(), floats.size()); in ToJavaFloatArray()
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/Mips/
Dfpxx.ll43 ; floats/doubles are not passed in integer registers for n64, so dmtc1 is not used.
178 ; floats/doubles are not passed in integer registers for n64, so dmtc1 is not used.
181 ; floats/doubles are not passed in integer registers for n64, so dmtc1 is not used.
208 ; floats/doubles are not passed in integer registers for n64, so dmfc1 is not used.
215 ; floats/doubles are not passed in integer registers for n64, so dmfc1 is not used.
/external/llvm/test/CodeGen/Mips/
Dfpxx.ll43 ; floats/doubles are not passed in integer registers for n64, so dmtc1 is not used.
178 ; floats/doubles are not passed in integer registers for n64, so dmtc1 is not used.
181 ; floats/doubles are not passed in integer registers for n64, so dmtc1 is not used.
208 ; floats/doubles are not passed in integer registers for n64, so dmfc1 is not used.
215 ; floats/doubles are not passed in integer registers for n64, so dmfc1 is not used.

12345678910>>...14