Home
last modified time | relevance | path

Searched refs:energy (Results 1 – 25 of 479) sorted by relevance

12345678910>>...20

/third_party/cmsis/CMSIS/DSP/Source/FilteringFunctions/
Darm_lms_norm_f32.c175 float32_t energy; /* Energy of the input */ in arm_lms_norm_f32() local
187 energy = S->energy; in arm_lms_norm_f32()
212 energy -= x0 * x0; in arm_lms_norm_f32()
213 energy += in * in; in arm_lms_norm_f32()
260 w = (e * mu) / (energy + 0.000000119209289f); in arm_lms_norm_f32()
310 S->energy = energy; in arm_lms_norm_f32()
366 float32_t energy; /* Energy of the input */ in arm_lms_norm_f32() local
373 energy = S->energy; in arm_lms_norm_f32()
398 energy -= x0 * x0; in arm_lms_norm_f32()
399 energy += in * in; in arm_lms_norm_f32()
[all …]
Darm_lms_norm_q31.c81 q63_t energy; /* Energy of the input */ in arm_lms_norm_q31() local
92 energy = S->energy; in arm_lms_norm_q31()
117 energy = (q31_t) ((((q63_t) energy << 32) - (((q63_t) x0 * x0) << 1)) >> 32); in arm_lms_norm_q31()
118 energy = (q31_t) (((((q63_t) in * in) << 1) + (energy << 32)) >> 32); in arm_lms_norm_q31()
183 postShift = arm_recip_q31(energy + DELTA_Q31, &oneByEnergy, &S->recipTable[0]); in arm_lms_norm_q31()
262 S->energy = (q31_t) energy; in arm_lms_norm_q31()
Darm_lms_norm_q15.c81 q31_t energy; /* Energy of the input */ in arm_lms_norm_q15() local
92 energy = S->energy; in arm_lms_norm_q15()
117 energy -= (((q31_t) x0 * (x0)) >> 15); in arm_lms_norm_q15()
118 energy += (((q31_t) in * (in)) >> 15); in arm_lms_norm_q15()
179 postShift = arm_recip_q15((q15_t) energy + DELTA_Q15, &oneByEnergy, S->recipTable); in arm_lms_norm_q15()
250 S->energy = (q15_t) energy; in arm_lms_norm_q15()
/third_party/boost/libs/units/test/
Dtest_quantity.cpp35 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::energy> E1; in test_main()
39 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::energy> E2(E_*bu::joules); in test_main()
43 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::energy> E3(E2); in test_main()
47 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::energy> E4 = E2; in test_main()
51 BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::energy,float> E5(E2); in test_main()
62 bu::quantity<bu::energy> E9(E2); in test_main()
94 …BOOST_CONSTEXPR_OR_CONST bu::quantity<bu::energy> E(bu::quantity<bu::energy>::from_value(2.5)… in test_main()
100 BOOST_CHECK(bu::joules*2.0 == bu::quantity<bu::energy>::from_value(2.0)); in test_main()
103 BOOST_CHECK(bu::joules/2.0 == bu::quantity<bu::energy>::from_value(0.5)); in test_main()
106 BOOST_CHECK(2.0*bu::joules == bu::quantity<bu::energy>::from_value(2.0)); in test_main()
[all …]
Dtest_header.hpp81 typedef unit<energy_dimension,system> energy; typedef
96 BOOST_UNITS_STATIC_CONSTANT(joule,energy);
97 BOOST_UNITS_STATIC_CONSTANT(joules,energy);
/third_party/boost/libs/numeric/odeint/examples/
Dfpu.cpp58 double energy( const container_type &q , const container_type &p ) const in energy() function
62 double energy = 0.0; in energy() local
66 energy += 0.5 * tmp * tmp + 0.25 * m_beta * tmp * tmp * tmp * tmp; in energy()
70 energy += 0.5 * ( p[i] * p[i] + tmp * tmp ) + 0.25 * m_beta * tmp * tmp * tmp * tmp; in energy()
72 energy += 0.5 * p[n-1] * p[n-1]; in energy()
74 energy += 0.5 * tmp * tmp + 0.25 * m_beta * tmp * tmp * tmp * tmp; in energy()
76 return energy; in energy()
124 container_type energy( q.size() ); in operator ()() local
125 m_fpu.local_energy( q , p , energy ); in operator ()()
128 … m_out << t << "\t" << i << "\t" << q[i] << "\t" << p[i] << "\t" << energy[i] << "\n"; in operator ()()
[all …]
/third_party/ffmpeg/libavcodec/
Daacenc_quantization.h46 int *bits, float *energy, int BT_ZERO, int BT_UNSIGNED, in quantize_and_encode_band_cost_template() argument
67 if (energy) in quantize_and_encode_band_cost_template()
68 *energy = qenergy; in quantize_and_encode_band_cost_template()
157 if (energy) in quantize_and_encode_band_cost_template()
158 *energy = qenergy; in quantize_and_encode_band_cost_template()
166 int *bits, float *energy) { in quantize_and_encode_band_cost_NONE() argument
177 int *bits, float *energy) { \
180 BT_ESC ? ESC_BT : cb, lambda, uplim, bits, energy, \
200 int *bits, float *energy) = {
224 int *bits, float *energy) = {
[all …]
Daacenc_quantization_misc.h34 int *bits, float *energy, int rtz) in quantize_band_cost_cached() argument
41 cb, lambda, uplim, &entry->bits, &entry->energy, rtz); in quantize_band_cost_cached()
48 if (energy) in quantize_band_cost_cached()
49 *energy = entry->energy; in quantize_band_cost_cached()
Dra144dec.c75 unsigned int energy; in ra144_decode_frame() local
101 energy = ff_energy_tab[get_bits(&gb, 5)]; in ra144_decode_frame()
105 energy <= ractx->old_energy, in ra144_decode_frame()
106 ff_t_sqrt(energy*ractx->old_energy) >> 12); in ra144_decode_frame()
107 refl_rms[2] = ff_interp(ractx, block_coefs[2], 3, 0, energy); in ra144_decode_frame()
108 refl_rms[3] = ff_rescale_rms(ractx->lpc_refl_rms[0], energy); in ra144_decode_frame()
119 ractx->old_energy = energy; in ra144_decode_frame()
Dg723_1dec.c444 int energy[5] = {0, 0, 0, 0, 0}; in comp_ppf_coeff() local
446 int fwd_lag = autocorr_max(buf, offset, &energy[1], pitch_lag, in comp_ppf_coeff()
448 int back_lag = autocorr_max(buf, offset, &energy[3], pitch_lag, in comp_ppf_coeff()
460 energy[0] = ff_g723_1_dot_product(buf, buf, SUBFRAME_LEN); in comp_ppf_coeff()
464 energy[2] = ff_g723_1_dot_product(buf + fwd_lag, buf + fwd_lag, in comp_ppf_coeff()
469 energy[4] = ff_g723_1_dot_product(buf - back_lag, buf - back_lag, in comp_ppf_coeff()
475 temp1 = FFMAX(energy[i], temp1); in comp_ppf_coeff()
479 energy[i] = (energy[i] << scale) >> 16; in comp_ppf_coeff()
482 comp_ppf_gains(fwd_lag, ppf, cur_rate, energy[0], energy[1], in comp_ppf_coeff()
483 energy[2]); in comp_ppf_coeff()
[all …]
Dopus_celt.c56 block->energy[i] = 0.0; in celt_decode_coarse_energy()
72 block->energy[i] = FFMAX(-9.0f, block->energy[i]) * alpha + prev[j] + value; in celt_decode_coarse_energy()
92 block->energy[i] += offset; in celt_decode_fine_energy()
112 f->block[j].energy[i] += offset; in celt_decode_final_energy()
152 float log_norm = block->energy[i] + ff_celt_mean_energy[i]; in celt_denormalize()
295 Ediff = block->energy[i] - FFMIN(prev[0], prev[1]); in process_anticollapse()
392 f->block[0].energy[i] = FFMAX(f->block[0].energy[i], f->block[1].energy[i]); in ff_celt_decode_frame()
428 for (j = 0; j < FF_ARRAY_ELEMS(block->energy); j++) in ff_celt_decode_frame()
429 block->energy[j] = CELT_ENERGY_SILENCE; in ff_celt_decode_frame()
462 memcpy(f->block[1].energy, f->block[0].energy, sizeof(f->block[0].energy)); in ff_celt_decode_frame()
[all …]
Dcngenc.c72 double energy = 0; in cng_encode_frame() local
83 energy += samples[i] * samples[i]; in cng_encode_frame()
85 energy /= frame->nb_samples; in cng_encode_frame()
86 if (energy > 0) { in cng_encode_frame()
87 double dbov = 10 * log10(energy / 1081109975); in cng_encode_frame()
Dra144enc.c441 int energy = 0; in ra144_encode_frame() local
459 energy += (lpc_data[i] * lpc_data[i]) >> 4; in ra144_encode_frame()
465 energy += (lpc_data[i] * lpc_data[i]) >> 4; in ra144_encode_frame()
470 energy = ff_energy_tab[quantize(ff_t_sqrt(energy >> 5) >> 10, ff_energy_tab, in ra144_encode_frame()
505 energy <= ractx->old_energy, in ra144_encode_frame()
506 ff_t_sqrt(energy * ractx->old_energy) >> 12); in ra144_encode_frame()
507 refl_rms[2] = ff_interp(ractx, block_coefs[2], 3, 0, energy); in ra144_encode_frame()
508 refl_rms[3] = ff_rescale_rms(ractx->lpc_refl_rms[0], energy); in ra144_encode_frame()
510 put_bits(&pb, 5, quantize(energy, ff_energy_tab, 32)); in ra144_encode_frame()
515 ractx->old_energy = energy; in ra144_encode_frame()
Daacpsy.c109 float energy; ///< band energy member
544 if (band->energy > band->thr) { in calc_pe_3gpp()
545 a = log2f(band->energy); in calc_pe_3gpp()
579 if (band->energy > thr) { in calc_reduced_thr_3gpp()
590 if (thr > band->energy * min_snr && band->avoid_holes != PSY_3GPP_AH_NONE) { in calc_reduced_thr_3gpp()
591 thr = FFMAX(band->thr, band->energy * min_snr); in calc_reduced_thr_3gpp()
612 band->energy = 0.0f; in calc_thr_3gpp()
615 band->energy += coefs[start+i] * coefs[start+i]; in calc_thr_3gpp()
619 Temp = band->energy > 0 ? sqrtf((float)band_sizes[g] / band->energy) : 0; in calc_thr_3gpp()
620 band->thr = band->energy * 0.001258925f; in calc_thr_3gpp()
[all …]
Dac3enc_template.c119 CoefSumType energy[AC3_MAX_BLOCKS][AC3_MAX_CHANNELS][16] = {{{0}}}; in apply_channel_coupling() local
165 MAC_COEF(energy[blk][ch][bnd], v, v); in apply_channel_coupling()
182 cpl_coords[blk][ch][bnd] = calc_cpl_coord(energy[blk][ch][bnd], in apply_channel_coupling()
183 energy[blk][CPL_CH][bnd]); in apply_channel_coupling()
242 energy_cpl = energy[blk][CPL_CH][bnd]; in apply_channel_coupling()
243 energy_ch = energy[blk][ch][bnd]; in apply_channel_coupling()
247 energy_cpl += energy[blk1][CPL_CH][bnd]; in apply_channel_coupling()
248 energy_ch += energy[blk1][ch][bnd]; in apply_channel_coupling()
Dcngdec.c36 int energy, target_energy; member
129 p->energy = p->energy / 2 + p->target_energy / 2; in cng_decode_frame()
133 p->energy = p->target_energy; in cng_decode_frame()
142 scaling = sqrt(e * p->energy / 1081109975); in cng_decode_frame()
/third_party/boost/libs/numeric/odeint/examples/2d_lattice/
Dspreading.cpp88 state_type energy( q ); in main() local
97 lattice.local_energy( q , p , energy ); in main()
99 for( size_t i=0 ; i<energy.size() ; ++i ) in main()
100 for( size_t j=0 ; j<energy[i].size() ; ++j ) in main()
102 e += energy[i][j]; in main()
105 cout << "initial energy: " << lattice.energy( q , p ) << endl; in main()
121 …cout << steps << " steps in " << elapsed_time/1000 << " s (energy: " << lattice.energy( q , p ) <<… in main()
Dlattice2d.hpp57 double energy( const StateIn &q , const StateIn &p ) in energy() function
61 double energy = 0.0; in energy() local
71 energy += p[i][j]*p[i][j] / 2.0 in energy()
79 return energy; in energy()
84 double local_energy( const StateIn &q , const StateIn &p , StateOut &energy ) in local_energy()
98 energy[i][j] = p[i][j]*p[i][j] / 2.0 in local_energy()
104 e += energy[i][j]; in local_energy()
111 energy[i][j] *= e; in local_energy()
/third_party/ffmpeg/libavcodec/mips/
Daaccoder_mips.c142 int *bits, float *energy, const float ROUNDING) in quantize_and_encode_band_cost_SQUAD_mips() argument
213 if (out || energy) { in quantize_and_encode_band_cost_SQUAD_mips()
226 if (energy) in quantize_and_encode_band_cost_SQUAD_mips()
230 if (energy) in quantize_and_encode_band_cost_SQUAD_mips()
231 *energy = qenergy; in quantize_and_encode_band_cost_SQUAD_mips()
238 int *bits, float *energy, const float ROUNDING) in quantize_and_encode_band_cost_UQUAD_mips() argument
328 if (out || energy) { in quantize_and_encode_band_cost_UQUAD_mips()
341 if (energy) in quantize_and_encode_band_cost_UQUAD_mips()
345 if (energy) in quantize_and_encode_band_cost_UQUAD_mips()
346 *energy = qenergy; in quantize_and_encode_band_cost_UQUAD_mips()
[all …]
Daacpsy_mips.h76 band->energy = 0.0f; in calc_thr_3gpp_mips()
107 [e]"+f"(band->energy), [f]"+f"(form_factor), in calc_thr_3gpp_mips()
116 Temp = sqrtf((float)band_sizes[g] / band->energy); in calc_thr_3gpp_mips()
117 band->thr = band->energy * 0.001258925f; in calc_thr_3gpp_mips()
/third_party/boost/boost/units/systems/cgs/
Denergy.hpp23 typedef unit<energy_dimension,cgs::system> energy; typedef
25 BOOST_UNITS_STATIC_CONSTANT(erg,energy);
26 BOOST_UNITS_STATIC_CONSTANT(ergs,energy);
/third_party/boost/boost/units/systems/si/
Denergy.hpp23 typedef unit<energy_dimension,si::system> energy; typedef
25 BOOST_UNITS_STATIC_CONSTANT(joule,energy);
26 BOOST_UNITS_STATIC_CONSTANT(joules,energy);
/third_party/boost/boost/units/systems/si/codata/
Dtypedefs.hpp46 typedef divide_typeof_helper<energy,magnetic_flux_density>::type energy_over_magnetic_flux_density;
48 typedef divide_typeof_helper<current,energy>::type current_over_energy;
50 typedef divide_typeof_helper<energy,temperature>::type energy_over_temperature;
66 typedef multiply_typeof_helper<energy,time>::type energy_time;
/third_party/icu/icu4c/source/test/testdata/cldr/units/
DunitsTest.txt65 energy ; electronvolt ; kilogram-square-meter-per-square-second ; 0.0000000000000000001602177 * x ;…
66 energy ; dalton ; kilogram-square-meter-per-square-second ; 0.00000000014924180856 * x ; 1.492418E-7
67 energy ; joule ; kilogram-square-meter-per-square-second ; 1 * x ; 1000.0
68 energy ; newton-meter ; kilogram-square-meter-per-square-second ; 1 * x ; 1000.0
69 energy ; pound-force-foot ; kilogram-square-meter-per-square-second ; 1.3558179483314004 * x ; 1355…
70 energy ; calorie ; kilogram-square-meter-per-square-second ; 4.184 * x ; 4184.0
71 energy ; kilojoule ; kilogram-square-meter-per-square-second ; 1,000 * x ; 1000000.0
72 energy ; british-thermal-unit ; kilogram-square-meter-per-square-second ; 9,489.1523804/9 * x ; 105…
73 energy ; foodcalorie ; kilogram-square-meter-per-square-second ; 4,184 * x ; 4184000.0
74 energy ; kilocalorie ; kilogram-square-meter-per-square-second ; 4,184 * x ; 4184000.0
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/data/cldr/units/
DunitsTest.txt65 energy ; electronvolt ; kilogram-square-meter-per-square-second ; 0.0000000000000000001602177 * x ;…
66 energy ; dalton ; kilogram-square-meter-per-square-second ; 0.00000000014924180856 * x ; 1.492418E-7
67 energy ; joule ; kilogram-square-meter-per-square-second ; 1 * x ; 1000.0
68 energy ; newton-meter ; kilogram-square-meter-per-square-second ; 1 * x ; 1000.0
69 energy ; pound-force-foot ; kilogram-square-meter-per-square-second ; 1.3558179483314004 * x ; 1355…
70 energy ; calorie ; kilogram-square-meter-per-square-second ; 4.184 * x ; 4184.0
71 energy ; kilojoule ; kilogram-square-meter-per-square-second ; 1,000 * x ; 1000000.0
72 energy ; british-thermal-unit ; kilogram-square-meter-per-square-second ; 9,489.1523804/9 * x ; 105…
73 energy ; foodcalorie ; kilogram-square-meter-per-square-second ; 4,184 * x ; 4184000.0
74 energy ; kilocalorie ; kilogram-square-meter-per-square-second ; 4,184 * x ; 4184000.0
[all …]

12345678910>>...20