Home
last modified time | relevance | path

Searched refs:residual (Results 1 – 25 of 47) sorted by relevance

12

/external/aac/libFDK/include/
DFDK_trigFcts.h146 FIXP_DBL residual; in fixp_sin_cos_residual_inline() local
152 residual = fMult(x, FL2FXCONST_DBL(1.0/M_PI)); in fixp_sin_cos_residual_inline()
153 s = ((LONG)residual) >> shift; in fixp_sin_cos_residual_inline()
155 residual &= ( (1<<shift) - 1 ); in fixp_sin_cos_residual_inline()
156 residual = fMult(residual, FL2FXCONST_DBL(M_PI/4.0)) << 2; in fixp_sin_cos_residual_inline()
157 residual <<= scale; in fixp_sin_cos_residual_inline()
202 return residual; in fixp_sin_cos_residual_inline()
215 FIXP_DBL residual, error0, error1, sine, cosine; in inline_fixp_cos_sin() local
216 residual = fixp_sin_cos_residual_inline(x1, scale, &sine, &cosine); in inline_fixp_cos_sin()
217 error0 = fMultDiv2(sine, residual); in inline_fixp_cos_sin()
[all …]
/external/flac/libFLAC/include/private/
Dlpc.h140 …a_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 residual[]);
141 …a_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 residual[]);
145 …a_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 residual[]);
146 …a_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 residual[]);
168 void FLAC__lpc_restore_signal(const FLAC__int32 residual[], unsigned data_len, const FLAC__int32 ql…
169 void FLAC__lpc_restore_signal_wide(const FLAC__int32 residual[], unsigned data_len, const FLAC__int…
173 void FLAC__lpc_restore_signal_asm_ia32(const FLAC__int32 residual[], unsigned data_len, const FLAC_…
174 void FLAC__lpc_restore_signal_asm_ia32_mmx(const FLAC__int32 residual[], unsigned data_len, const F…
177 void FLAC__lpc_restore_signal_asm_ppc_altivec_16(const FLAC__int32 residual[], unsigned data_len, c…
178 void FLAC__lpc_restore_signal_asm_ppc_altivec_16_order8(const FLAC__int32 residual[], unsigned data…
Dfixed.h80 …pute_residual(const FLAC__int32 data[], unsigned data_len, unsigned order, FLAC__int32 residual[]);
95 void FLAC__fixed_restore_signal(const FLAC__int32 residual[], unsigned data_len, unsigned order, FL…
/external/ceres-solver/examples/
Dpowell.cc61 T* residual) const { in operator ()()
63 residual[0] = x1[0] + T(10.0) * x2[0]; in operator ()()
71 T* residual) const { in operator ()()
73 residual[0] = T(sqrt(5.0)) * (x3[0] - x4[0]); in operator ()()
81 T* residual) const { in operator ()()
83 residual[0] = (x2[0] - T(2.0) * x4[0]) * (x2[0] - T(2.0) * x4[0]); in operator ()()
91 T* residual) const { in operator ()()
93 residual[0] = T(sqrt(10.0)) * (x1[0] - x4[0]) * (x1[0] - x4[0]); in operator ()()
Dhelloworld_numeric_diff.cc46 bool operator()(const double* const x, double* residual) const { in operator ()()
47 residual[0] = 10.0 - x[0]; in operator ()()
Dhelloworld.cc50 template <typename T> bool operator()(const T* const x, T* residual) const { in operator ()()
51 residual[0] = T(10.0) - x[0]; in operator ()()
Dquadratic_auto_diff.cc53 template <typename T> bool operator()(const T* const x, T* residual) const { in operator ()()
54 residual[0] = T(10.0) - x[0]; in operator ()()
Dquadratic_numeric_diff.cc49 bool operator()(const double* const x, double* residual) const { in operator ()()
50 residual[0] = 10.0 - x[0]; in operator ()()
Drobust_curve_fitting.cc129 T* residual) const { in operator ()()
130 residual[0] = T(y_) - exp(m[0] * T(x_) + c[0]); in operator ()()
Ddata_fitting.cc128 T* residual) const { in operator ()()
129 residual[0] = T(y_) - exp(m[0] * T(x_) + c[0]); in operator ()()
Dcurve_fitting.cc127 T* residual) const { in operator ()()
128 residual[0] = T(y_) - exp(m[0] * T(x_) + c[0]); in operator ()()
/external/flac/libFLAC/
Dfixed.c352 …mpute_residual(const FLAC__int32 data[], unsigned data_len, unsigned order, FLAC__int32 residual[]) in FLAC__fixed_compute_residual() argument
359 FLAC__ASSERT(sizeof(residual[0]) == sizeof(data[0])); in FLAC__fixed_compute_residual()
360 memcpy(residual, data, sizeof(residual[0])*data_len); in FLAC__fixed_compute_residual()
364 residual[i] = data[i] - data[i-1]; in FLAC__fixed_compute_residual()
369 residual[i] = data[i] - (data[i-1] << 1) + data[i-2]; in FLAC__fixed_compute_residual()
371 residual[i] = data[i] - 2*data[i-1] + data[i-2]; in FLAC__fixed_compute_residual()
377 residual[i] = data[i] - (((data[i-1]-data[i-2])<<1) + (data[i-1]-data[i-2])) - data[i-3]; in FLAC__fixed_compute_residual()
379 residual[i] = data[i] - 3*data[i-1] + 3*data[i-2] - data[i-3]; in FLAC__fixed_compute_residual()
385residual[i] = data[i] - ((data[i-1]+data[i-3])<<2) + ((data[i-2]<<2) + (data[i-2]<<1)) + data[i-4]; in FLAC__fixed_compute_residual()
387 residual[i] = data[i] - 4*data[i-1] + 6*data[i-2] - 4*data[i-3] + data[i-4]; in FLAC__fixed_compute_residual()
[all …]
Dlpc.c265 …ta_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 residual[]) in FLAC__lpc_compute_residual_from_qlp_coefficients() argument
296 *(residual++) = *(data++) - (sum >> lp_quantization); in FLAC__lpc_compute_residual_from_qlp_coefficients()
339 residual[i] = data[i] - (sum >> lp_quantization);
356 residual[i] = data[i] - (sum >> lp_quantization);
374 residual[i] = data[i] - (sum >> lp_quantization);
389 residual[i] = data[i] - (sum >> lp_quantization);
407 residual[i] = data[i] - (sum >> lp_quantization);
420 residual[i] = data[i] - (sum >> lp_quantization);
434 residual[i] = data[i] - (sum >> lp_quantization);
445 residual[i] = data[i] - (sum >> lp_quantization);
[all …]
Dstream_encoder_framing.c48 static FLAC__bool add_residual_partitioned_rice_(FLAC__BitWriter *bw, const FLAC__int32 residual[],…
400 subframe->residual, in FLAC__subframe_add_fixed()
446 subframe->residual, in FLAC__subframe_add_lpc()
497 FLAC__bool add_residual_partitioned_rice_(FLAC__BitWriter *bw, const FLAC__int32 residual[], const … in add_residual_partitioned_rice_() argument
508 if(!FLAC__bitwriter_write_rice_signed_block(bw, residual, residual_samples, rice_parameters[0])) in add_residual_partitioned_rice_()
518 if(!FLAC__bitwriter_write_raw_int32(bw, residual[i], raw_bits[0])) in add_residual_partitioned_rice_()
536 if(!FLAC__bitwriter_write_rice_signed_block(bw, residual+k_last, k-k_last, rice_parameters[i])) in add_residual_partitioned_rice_()
545 if(!FLAC__bitwriter_write_raw_int32(bw, residual[j], raw_bits[i])) in add_residual_partitioned_rice_()
/external/aac/libFDK/src/
DFDK_trigFcts.cpp298 FIXP_DBL residual, error, sine, cosine; in fixp_cos() local
300 residual = fixp_sin_cos_residual_inline(x, scale, &sine, &cosine); in fixp_cos()
301 error = fMult(sine, residual); in fixp_cos()
308 FIXP_DBL residual, error, sine, cosine; in fixp_sin() local
310 residual = fixp_sin_cos_residual_inline(x, scale, &sine, &cosine); in fixp_sin()
311 error = fMult(cosine, residual); in fixp_sin()
318 FIXP_DBL residual, error0, error1, sine, cosine; in fixp_cos_sin() local
320 residual = fixp_sin_cos_residual_inline(x, scale, &sine, &cosine); in fixp_cos_sin()
321 error0 = fMult(sine, residual); in fixp_cos_sin()
322 error1 = fMult(cosine, residual); in fixp_cos_sin()
/external/ceres-solver/internal/ceres/
Dautodiff_test.cc517 double residual = 0; in TEST() local
532 functor, parameters, 1, &residual, jacobians))); in TEST()
533 EXPECT_EQ(residual, pow(2, num_variables + 1) - 2); in TEST()
543 functor, parameters, 1, &residual, jacobians))); in TEST()
544 EXPECT_EQ(residual, pow(2, num_variables + 1) - 2); in TEST()
554 functor, parameters, 1, &residual, jacobians))); in TEST()
555 EXPECT_EQ(residual, pow(2, num_variables + 1) - 2); in TEST()
565 functor, parameters, 1, &residual, jacobians))); in TEST()
566 EXPECT_EQ(residual, pow(2, num_variables + 1) - 2); in TEST()
576 functor, parameters, 1, &residual, jacobians))); in TEST()
[all …]
Dsystem_test.cc237 T* residual) const { in operator ()()
239 *residual = *x1 + T(10.0) * *x2; in operator ()()
248 T* residual) const { in operator ()()
250 *residual = T(sqrt(5.0)) * (*x3 - *x4); in operator ()()
259 T* residual) const { in operator ()()
261 residual[0] = (x2[0] - T(2.0) * x4[0]) * (x2[0] - T(2.0) * x4[0]); in operator ()()
270 T* residual) const { in operator ()()
272 residual[0] = T(sqrt(10.0)) * (x1[0] - x4[0]) * (x1[0] - x4[0]); in operator ()()
Dgradient_checking_cost_function_test.cc149 double residual; in TEST() local
174 &residual, in TEST()
176 EXPECT_EQ(original_residual, residual); in TEST()
205 double residual; in TEST() local
233 &residual, in TEST()
251 &residual, in TEST()
/external/eigen/Eigen/src/IterativeLinearSolvers/
DConjugateGradient.h43 VectorType residual = rhs - mat * x; //initial residual in conjugate_gradient() local
46 p = precond.solve(residual); //initial search direction in conjugate_gradient()
49 …RealScalar absNew = internal::real(residual.dot(p)); // the square of the absolute value of r sca… in conjugate_gradient()
60 residual -= alpha * tmp; // update residue in conjugate_gradient()
62 residualNorm2 = residual.squaredNorm(); in conjugate_gradient()
66 z = precond.solve(residual); // approximately solve for "A z = residual" in conjugate_gradient()
69 absNew = internal::real(residual.dot(z)); // update the absolute value of r in conjugate_gradient()
/external/compiler-rt/lib/
Ddivsf3.c135 rep_t residual; in ARM_EABI_FNALIAS() local
137 residual = (aSignificand << 24) - quotient * bSignificand; in ARM_EABI_FNALIAS()
141 residual = (aSignificand << 23) - quotient * bSignificand; in ARM_EABI_FNALIAS()
158 const bool round = (residual << 1) > bSignificand; in ARM_EABI_FNALIAS()
Ddivdf3.c150 rep_t residual; in ARM_EABI_FNALIAS() local
152 residual = (aSignificand << 53) - quotient * bSignificand; in ARM_EABI_FNALIAS()
156 residual = (aSignificand << 52) - quotient * bSignificand; in ARM_EABI_FNALIAS()
173 const bool round = (residual << 1) > bSignificand; in ARM_EABI_FNALIAS()
/external/ceres-solver/docs/source/
Dtutorial.rst63 bool operator()(const T* const x, T* residual) const {
64 residual[0] = T(10.0) - x[0];
73 residual is needed, and with a special type ``T=Jet`` when the
77 Once we have a way of computing the residual function, it is now time
93 // Set up the only cost function (also known as residual). This uses
175 for example when the evaluation of the residual involves a call to a
178 functor which computes the residual value and construct a
185 bool operator()(const double* const x, double* residual) const {
186 residual[0] = 10.0 - x[0];
228 In such cases, it is possible to supply your own residual and jacobian
[all …]
/external/flac/libFLAC/ppc/as/
Dlpc_asm.s38 ; r3: residual[]
52 ; has only one load from memory (the residual)
225 lvsl v18,r10,r3 ; v18: residual shift back vector
274 lvewx v21,0,r3 ; v21[n]: *residual
275 vperm v21,v21,v21,v18 ; v21[3]: *residual
276 vaddsws v20,v21,v20 ; v20[3]: *residual + (sum >> lp_quantization)
297 ; r3: residual[]
390 lvsl v6,r10,r3 ; v6: residual shift back vector
409 lvewx v9,0,r3 ; v9[n]: *residual
410 vperm v9,v9,v9,v6 ; v9[3]: *residual
[all …]
/external/flac/libFLAC/ppc/gas/
Dlpc_asm.s40 # r3: residual[]
54 # has only one load from memory (the residual)
227 lvsl v18,r10,r3 # v18: residual shift back vector
276 lvewx v21,0,r3 # v21[n]: *residual
277 vperm v21,v21,v21,v18 # v21[3]: *residual
278 vaddsws v20,v21,v20 # v20[3]: *residual + (sum >> lp_quantization)
299 # r3: residual[]
392 lvsl v6,r10,r3 # v6: residual shift back vector
411 lvewx v9,0,r3 # v9[n]: *residual
412 vperm v9,v9,v9,v6 # v9[3]: *residual
[all …]
/external/flac/libFLAC/ia32/
Dstream_encoder_asm.nasm46 ; const FLAC__int32 residual[],
58 ;; [esp + 4] const FLAC__int32 residual[]
69 ;; [esp + 28] const FLAC__int32 residual[]
93 mov ebp, [esp + 28] ; ebp <- residual[]
103 add ebx, eax ; abs_residual_partition_sum += abs(residual[residual_sample]);

12