Searched refs:prod (Results 1 - 25 of 63) sorted by relevance

123

/external/eigen/doc/snippets/
H A DMatrixBase_prod.cpp3 cout << "Here is the product of all the coefficients:" << endl << m.prod() << endl;
H A DPartialRedux_prod.cpp3 cout << "Here is the product of each row:" << endl << m.rowwise().prod() << endl;
/external/skia/include/core/
H A DSkMath.h188 unsigned prod = SkMulS16(a, b) + 1; local
189 return (prod + (prod >> 8)) >> 8;
198 unsigned prod = SkMulS16(a, b) + 128; local
199 return (prod + (prod >> 8)) >> 8;
208 unsigned prod = SkMulS16(a, b) + 255; local
209 return (prod + (prod >> 8)) >> 8;
219 unsigned prod local
225 SkDiv255Round(unsigned prod) argument
[all...]
/external/dropbear/libtomcrypt/src/modes/lrw/
H A Dlrw_process.c31 unsigned char prod[16]; local
47 XMEMCPY(prod, lrw->pad, 16);
75 /* xor prod */
78 *((LTC_FAST_TYPE *)(ct + x)) = *((LTC_FAST_TYPE *)(pt + x)) ^ *((LTC_FAST_TYPE *)(prod + x));
82 ct[x] = pt[x] ^ prod[x];
97 /* xor prod */
100 *((LTC_FAST_TYPE *)(ct + x)) = *((LTC_FAST_TYPE *)(ct + x)) ^ *((LTC_FAST_TYPE *)(prod + x));
104 ct[x] = ct[x] ^ prod[x];
/external/stlport/test/unit/
H A Daccum_test.cpp44 int prod = accumulate(v.begin(), v.end(), 1, mult); local
45 CPPUNIT_ASSERT(prod==120);
/external/eigen/doc/examples/
H A Dtut_arithmetic_redux_basic.cpp11 cout << "Here is mat.prod(): " << mat.prod() << endl;
/external/v8/test/mjsunit/
H A Darray-reduce.js101 function prod(a, b) { return a * b; } function
119 simpleArray, prod, 1);
135 testReduce("reduce", "EmptyReduceProd", 1, [], [], prod, 1);
140 testReduce("reduce", "EmptyReduceProdNoInit", 1, [], [1], prod);
156 simpleSparseArray, prod, 1);
172 testReduce("reduce", "EmptySparseReduceProdNoInit", 1, [], [,,1,,], prod);
197 verySparseArray, prod, 1);
221 verySparseArray, prod);
247 simpleArray, prod, 1);
263 testReduce("reduceRight", "EmptyReduceRightProd", 1, [], [], prod,
[all...]
/external/eigen/bench/btl/libs/ublas/
H A Dublas_interface.hh92 X = prod(A,B);
96 X = prod(A,B);
106 X.assign(prod(A,B));
110 X.assign(prod(trans(A),B));
114 X.assign(prod(A,B));
126 // X = prod(trans(A),A);
127 X.assign(prod(trans(A),A));
131 // X = prod(A,trans(A));
132 X.assign(prod(A,trans(A)));
/external/valgrind/main/drd/tests/
H A Dmatinv.c143 elem_t* prod; local
147 prod = new_matrix(rows1, cols2);
152 prod[i * cols2 + j] = 0;
155 prod[i * cols2 + j] += a1[i * cols1 + k] * a2[k * cols2 + j];
159 return prod;
316 elem_t *a, *inv, *prod; local
348 prod = multiply_matrices(a, matrix_size, matrix_size,
350 error = identity_error(prod, matrix_size);
361 delete_matrix(prod);
H A Domp_matinv.c131 elem_t* prod; local
135 prod = new_matrix(rows1, cols2);
140 prod[i * cols2 + j] = 0;
143 prod[i * cols2 + j] += a1[i * cols1 + k] * a2[k * cols2 + j];
147 return prod;
292 elem_t *a, *inv, *prod; local
328 prod = multiply_matrices(a, matrix_size, matrix_size,
330 error = identity_error(prod, matrix_size);
341 delete_matrix(prod);
/external/eigen/Eigen/src/Core/
H A DProductBase.h198 operator*(const ProductBase<Derived,Lhs,Rhs>& prod, typename Derived::Scalar x) argument
199 { return ScaledProduct<Derived>(prod.derived(), x); }
204 operator*(const ProductBase<Derived,Lhs,Rhs>& prod, typename Derived::RealScalar x) argument
205 { return ScaledProduct<Derived>(prod.derived(), x); }
210 operator*(typename Derived::Scalar x,const ProductBase<Derived,Lhs,Rhs>& prod) argument
211 { return ScaledProduct<Derived>(prod.derived(), x); }
216 operator*(typename Derived::RealScalar x,const ProductBase<Derived,Lhs,Rhs>& prod) argument
217 { return ScaledProduct<Derived>(prod.derived(), x); }
244 ScaledProduct(const NestedProduct& prod, Scalar x) argument
245 : Base(prod
[all...]
H A DGeneralProduct.h257 static EIGEN_DONT_INLINE void run(const ProductType& prod, Dest& dest, typename ProductType::Scalar alpha) { argument
263 dest.col(j) += (alpha * prod.rhs().coeff(j)) * prod.lhs();
269 static EIGEN_DONT_INLINE void run(const ProductType& prod, Dest& dest, typename ProductType::Scalar alpha) { argument
275 dest.row(i) += (alpha * prod.lhs().coeff(i)) * prod.rhs();
338 static void run(const ProductType& prod, Dest& dest, typename ProductType::Scalar alpha) argument
344 (prod.rhs().transpose(), prod.lhs().transpose()), destT, alpha);
387 static inline void run(const ProductType& prod, Des argument
460 run(const ProductType& prod, Dest& dest, typename ProductType::Scalar alpha) argument
511 run(const ProductType& prod, Dest& dest, typename ProductType::Scalar alpha) argument
524 run(const ProductType& prod, Dest& dest, typename ProductType::Scalar alpha) argument
[all...]
/external/eigen/bench/btl/libs/tvmet/
H A Dtvmet_interface.hh86 X = prod(A,B);
90 X = prod(A,B);
94 X = prod(trans(A),B);
/external/mdnsresponder/Clients/
H A DMakefile33 LIBS = -L../mDNSPosix/build/prod/ -ldns_sd
/external/eigen/test/
H A Dredux.cpp23 // The entries of m1 are uniformly distributed in [0,1], so m1.prod() is very small. This may lead to test
42 VERIFY_IS_APPROX(m1_for_prod.prod(), p);
53 VERIFY_IS_APPROX(m1_for_prod.block(r0,c0,r1,c1).prod(), m1_for_prod.block(r0,c0,r1,c1).eval().prod());
59 VERIFY_IS_APPROX(m1.block(r0,c0,0,0).prod(), Scalar(1));
84 VERIFY_IS_APPROX(p, v_for_prod.head(i).prod());
101 VERIFY_IS_APPROX(p, v_for_prod.tail(size-i).prod());
118 VERIFY_IS_APPROX(p, v_for_prod.segment(i, size-2*i).prod());
125 VERIFY_IS_APPROX(v.tail(0).prod(), Scalar(1));
/external/skia/src/utils/
H A DSkCamera.cpp16 float prod = 0; local
18 prod += a[0] * b[0];
22 return prod / denom;
24 Sk64 prod, tmp;
26 prod.set(0);
29 prod.add(tmp);
33 prod.div(denom, Sk64::kRound_DivOption);
34 return prod.get32();
41 float prod = 0; local
43 prod
[all...]
/external/eigen/Eigen/src/Core/arch/NEON/
H A DPacketMath.h309 float32x2_t a_lo, a_hi, prod; local
316 prod = vmul_f32(a_lo, a_hi);
317 // Multiply prod with its swapped value |a2*a4|a1*a3|
318 prod = vmul_f32(prod, vrev64_f32(prod));
319 vst1_f32(s, prod);
325 int32x2_t a_lo, a_hi, prod; local
332 prod = vmul_s32(a_lo, a_hi);
333 // Multiply prod wit
[all...]
/external/eigen/bench/
H A Dproduct_threshold.cpp39 EIGEN_DONT_INLINE void prod(const Lhs& a, const Rhs& b, Res& c) function
59 BENCH(t,1,rep,prod<CoeffBasedProductMode>(a,b,c));
63 BENCH(t,5,rep,prod<Mode>(a,b,c));
/external/skia/tests/
H A DMathTest.cpp25 int prod = src * a31 + (31 - a31) * dst + 16; local
26 prod = (prod + (prod >> 5)) >> 5;
27 return prod;
31 int prod = (src - dst) * a31 + 16; local
32 prod = (prod + (prod >> 5)) >> 5;
33 return dst + prod;
481 float prod = SkFixedToFloat(numer) * SkFixedToFloat(denom); local
[all...]
/external/eigen/Eigen/src/Core/products/
H A DTriangularMatrixVector.h208 static void run(const TriangularProduct<Mode,true,Lhs,false,Rhs,true>& prod, Dest& dest, typename TriangularProduct<Mode,true,Lhs,false,Rhs,true>::Scalar alpha) argument
222 typename internal::add_const_on_value_type<ActualLhsType>::type actualLhs = LhsBlasTraits::extract(prod.lhs());
223 typename internal::add_const_on_value_type<ActualRhsType>::type actualRhs = RhsBlasTraits::extract(prod.rhs());
225 ResScalar actualAlpha = alpha * LhsBlasTraits::extractScalarFactor(prod.lhs())
226 * RhsBlasTraits::extractScalarFactor(prod.rhs());
284 static void run(const TriangularProduct<Mode,true,Lhs,false,Rhs,true>& prod, Dest& dest, typename TriangularProduct<Mode,true,Lhs,false,Rhs,true>::Scalar alpha) argument
297 typename add_const<ActualLhsType>::type actualLhs = LhsBlasTraits::extract(prod.lhs());
298 typename add_const<ActualRhsType>::type actualRhs = RhsBlasTraits::extract(prod.rhs());
300 ResScalar actualAlpha = alpha * LhsBlasTraits::extractScalarFactor(prod.lhs())
301 * RhsBlasTraits::extractScalarFactor(prod
[all...]
H A DGeneralMatrixMatrixTriangular.h185 TriangularView<MatrixType,UpLo>& TriangularView<MatrixType,UpLo>::assignProduct(const ProductBase<ProductDerived, _Lhs,_Rhs>& prod, const Scalar& alpha) argument
191 typename internal::add_const_on_value_type<ActualLhs>::type actualLhs = LhsBlasTraits::extract(prod.lhs());
197 typename internal::add_const_on_value_type<ActualRhs>::type actualRhs = RhsBlasTraits::extract(prod.rhs());
199 typename ProductDerived::Scalar actualAlpha = alpha * LhsBlasTraits::extractScalarFactor(prod.lhs().derived()) * RhsBlasTraits::extractScalarFactor(prod.rhs().derived());
/external/libgsm/src/
H A Dadd.c45 longword prod = (longword)a * (longword)b + 16384; local
46 prod >>= 15;
47 return prod & 0xFFFF;
/external/kernel-headers/original/linux/
H A Dhid.h555 #define HID_DEVICE(b, ven, prod) \
557 .vendor = (ven), .product = (prod)
559 #define HID_USB_DEVICE(ven, prod) HID_DEVICE(BUS_USB, ven, prod)
560 #define HID_BLUETOOTH_DEVICE(ven, prod) HID_DEVICE(BUS_BLUETOOTH, ven, prod)
/external/eigen/Eigen/src/Core/arch/AltiVec/
H A DComplex.h148 Packet2cf prod; local
150 prod = pmul(a, Packet2cf(b));
152 return pfirst(prod);
/external/skia/samplecode/
H A DSampleXfermodes.cpp41 unsigned prod = a * b + (1 << (shift - 1));
42 return (prod + (prod >> shift)) >> shift;

Completed in 2716 milliseconds

123