/external/tensorflow/tensorflow/python/ops/linalg/ |
D | linear_operator_circulant.py | 59 spectrum, argument 105 with ops.name_scope(name, values=[spectrum]): 106 self._spectrum = self._check_spectrum_and_return_tensor(spectrum) 109 if not self.spectrum.dtype.is_complex: 129 self._set_graph_parents([self.spectrum]) 131 def _check_spectrum_and_return_tensor(self, spectrum): argument 133 spectrum = linear_operator_util.convert_nonref_to_tensor(spectrum, 136 if spectrum.shape.ndims is not None: 137 if spectrum.shape.ndims < self.block_depth: 140 (self.block_depth, spectrum)) [all …]
|
D | adjoint_registrations.py | 118 spectrum = circulant_operator.spectrum 119 if spectrum.dtype.is_complex: 120 spectrum = math_ops.conj(spectrum) 124 spectrum=spectrum,
|
D | solve_registrations.py | 182 spectrum=linop_b.spectrum / linop_a.spectrum,
|
D | matmul_registrations.py | 210 spectrum=linop_a.spectrum * linop_b.spectrum,
|
/external/tensorflow/tensorflow/python/kernel_tests/linalg/ |
D | linear_operator_circulant_test.py | 69 def _spectrum_to_circulant_1d(self, spectrum, shape, dtype): argument 83 spectrum = _to_complex(spectrum) 95 fft_x = fft_ops.fft(math_ops.cast(x, spectrum.dtype)) 96 h_convolve_x = fft_ops.ifft(spectrum * fft_x) 127 spectrum = linear_operator_test_util.random_sign_uniform( 130 spectrum = math_ops.abs(spectrum) 133 spectrum = math_ops.cast(spectrum, dtype) 135 lin_op_spectrum = spectrum 138 lin_op_spectrum = array_ops.placeholder_with_default(spectrum, shape=None) 146 mat = self._spectrum_to_circulant_1d(spectrum, shape, dtype=dtype) [all …]
|
/external/webrtc/modules/audio_processing/agc2/ |
D | noise_spectrum_estimator.cc | 37 void NoiseSpectrumEstimator::Update(rtc::ArrayView<const float> spectrum, in Update() argument 39 RTC_DCHECK_EQ(65, spectrum.size()); in Update() 43 std::copy(spectrum.data(), spectrum.data() + spectrum.size(), in Update() 48 for (size_t k = 0; k < spectrum.size(); ++k) { in Update() 49 if (noise_spectrum_[k] < spectrum[k]) { in Update() 52 noise_spectrum_[k] + 0.05f * (spectrum[k] - noise_spectrum_[k])); in Update() 56 noise_spectrum_[k] + 0.05f * (spectrum[k] - noise_spectrum_[k])); in Update() 67 data_dumper_->DumpRaw("lc_signal_spectrum", spectrum); in Update()
|
D | signal_classifier.cc | 47 rtc::ArrayView<float> spectrum) { in PowerSpectrum() argument 48 RTC_DCHECK_EQ(65, spectrum.size()); in PowerSpectrum() 56 spectrum[0] = (*X_p) * (*X_p); in PowerSpectrum() 59 spectrum[64] = (*X_p) * (*X_p); in PowerSpectrum() 63 spectrum[k] = (*X_p) * (*X_p); in PowerSpectrum() 66 spectrum[k] += (*X_p) * (*X_p); in PowerSpectrum()
|
/external/libxaac/decoder/ |
D | ixheaacd_aac_tns.c | 201 VOID ixheaacd_tns_ar_filter_fixed_dec(WORD32 *spectrum, WORD32 size, WORD32 inc, in ixheaacd_tns_ar_filter_fixed_dec() argument 220 y = ixheaacd_shl32_sat((*spectrum), scale_spec); in ixheaacd_tns_ar_filter_fixed_dec() 230 *spectrum = y >> scale_spec; in ixheaacd_tns_ar_filter_fixed_dec() 231 spectrum += inc; in ixheaacd_tns_ar_filter_fixed_dec() 235 y = ixheaacd_shl32_sat((*spectrum), scale_spec); in ixheaacd_tns_ar_filter_fixed_dec() 244 *spectrum = y >> scale_spec; in ixheaacd_tns_ar_filter_fixed_dec() 245 spectrum += inc; in ixheaacd_tns_ar_filter_fixed_dec() 250 VOID ixheaacd_tns_ar_filter_fixed_non_neon_armv7(WORD32 *spectrum, WORD32 size, in ixheaacd_tns_ar_filter_fixed_non_neon_armv7() argument 269 y = ixheaacd_shl32_sat((*spectrum), scale_spec); in ixheaacd_tns_ar_filter_fixed_non_neon_armv7() 279 *spectrum = y >> scale_spec; in ixheaacd_tns_ar_filter_fixed_non_neon_armv7() [all …]
|
D | ixheaacd_tns.h | 51 VOID ixheaacd_tns_ar_filter_dec(WORD32 *spectrum, WORD32 size, WORD32 inc, 55 void ixheaacd_tns_ma_filter_fixed_ld(WORD32 *spectrum, WORD32 size, WORD32 inc, 59 VOID ixheaacd_tns_ar_filter_armv7(WORD32 *spectrum, WORD32 size, WORD32 inc, 69 VOID ixheaacd_tns_ar_filter_fixed_dec(WORD32 *spectrum, WORD32 size, WORD32 inc, 73 VOID ixheaacd_tns_ar_filter_fixed_armv7(WORD32 *spectrum, WORD32 size, 77 VOID ixheaacd_tns_ar_filter_fixed_non_neon_armv7(WORD32 *spectrum, WORD32 size, 83 VOID ixheaacd_tns_ar_filter_fixed_armv8(WORD32 *spectrum, WORD32 size,
|
D | ixheaacd_tns.c | 133 static VOID ixheaacd_tns_ar_filter_usac(WORD32 *spectrum, WORD32 size, in ixheaacd_tns_ar_filter_usac() argument 150 y = *spectrum; in ixheaacd_tns_ar_filter_usac() 161 *spectrum = y; in ixheaacd_tns_ar_filter_usac() 162 spectrum += inc; in ixheaacd_tns_ar_filter_usac() 166 y = *spectrum; in ixheaacd_tns_ar_filter_usac() 176 *spectrum = y; in ixheaacd_tns_ar_filter_usac() 177 spectrum += inc; in ixheaacd_tns_ar_filter_usac()
|
/external/libxaac/decoder/armv7/ |
D | ixheaacd_tns_ar_filter_fixed.s | 61 LDR r8 , [r0] @r8 =*spectrum 70 LDR r8 , [r0] @r8 =*spectrum 88 STR r9 , [r0], #4 @*spectrum = y@ 137 LDR r8 , [r0] @r8 = y = *spectrum 146 MOV r8, r8, lsl r1 @y = (*spectrum) << scaleSpec 163 STR r9 , [r0], #4 @*spectrum = y@ 165 LDRGT r8 , [r0] @r8 = y = *spectrum 172 LDR r8 , [r0] @r8 = y = *spectrum 185 MOV r8, r8, lsl r1 @y = (*spectrum) << scaleSpec 202 STR r9 , [r0], #4 @*spectrum = y@ [all …]
|
/external/webrtc/modules/audio_processing/aec3/ |
D | fft_data_unittest.cc | 35 std::array<float, kFftLengthBy2Plus1> spectrum; in TEST() local 37 x.Spectrum(Aec3Optimization::kNone, spectrum); in TEST() 39 EXPECT_EQ(spectrum, spectrum_sse2); in TEST() 104 std::array<float, kFftLengthBy2Plus1> spectrum; in TEST() local 105 x.Spectrum(Aec3Optimization::kNone, spectrum); in TEST() 107 EXPECT_EQ(x.re[0] * x.re[0], spectrum[0]); in TEST() 108 EXPECT_EQ(x.re[spectrum.size() - 1] * x.re[spectrum.size() - 1], in TEST() 109 spectrum[spectrum.size() - 1]); in TEST() 110 for (size_t k = 1; k < spectrum.size() - 1; ++k) { in TEST() 111 EXPECT_EQ(x.re[k] * x.re[k] + x.im[k] * x.im[k], spectrum[k]); in TEST()
|
D | stationarity_estimator.cc | 47 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> spectrum) { in UpdateNoiseEstimator() argument 48 noise_.Update(spectrum); in UpdateNoiseEstimator() 170 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> spectrum) { in Update() argument 171 RTC_DCHECK_LE(1, spectrum[0].size()); in Update() 172 const int num_render_channels = static_cast<int>(spectrum.size()); in Update() 177 avg_spectrum = spectrum[0]; in Update() 182 std::copy(spectrum[0].begin(), spectrum[0].end(), in Update() 186 avg_spectrum_data[k] += spectrum[ch][k]; in Update()
|
D | dominant_nearend_detector.cc | 39 auto low_frequency_energy = [](rtc::ArrayView<const float> spectrum) { in Update() argument 40 RTC_DCHECK_LE(16, spectrum.size()); in Update() 41 return std::accumulate(spectrum.begin() + 1, spectrum.begin() + 16, 0.f); in Update()
|
D | stationarity_estimator.h | 39 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> spectrum); 90 rtc::ArrayView<const std::array<float, kFftLengthBy2Plus1>> spectrum);
|
/external/aac/libAACenc/src/ |
D | tonality.cpp | 114 static void FDKaacEnc_CalcSfbTonality(FIXP_DBL *RESTRICT spectrum, 121 void FDKaacEnc_CalculateFullTonality(FIXP_DBL *RESTRICT spectrum, in FDKaacEnc_CalculateFullTonality() argument 133 FDKaacEnc_CalculateChaosMeasure(spectrum, numberOfLines, in FDKaacEnc_CalculateFullTonality() 157 FDKaacEnc_CalcSfbTonality(spectrum, sfbMaxScaleSpec, chaosMeasurePerLine, in FDKaacEnc_CalculateFullTonality() 175 static void FDKaacEnc_CalcSfbTonality(FIXP_DBL *RESTRICT spectrum, in FDKaacEnc_CalcSfbTonality() argument 194 FIXP_DBL tmp = (*spectrum++) << shiftBits; in FDKaacEnc_CalcSfbTonality()
|
D | tns_func.h | 116 TNS_INFO *tnsInfo, INT sfbCnt, const FIXP_DBL *spectrum, 126 const INT lowPassLine, FIXP_DBL *spectrum,
|
D | aacenc_tns.cpp | 553 static inline FIXP_DBL FDKaacEnc_CalcAutoCorrValue(const FIXP_DBL *spectrum, in FDKaacEnc_CalcAutoCorrValue() argument 565 result += (fPow2(spectrum[i]) >> scale); in FDKaacEnc_CalcAutoCorrValue() 569 result += (fMult(spectrum[i], spectrum[i + lag]) >> scale); in FDKaacEnc_CalcAutoCorrValue() 620 const FIXP_DBL *spectrum, const INT isLowDelay, in FDKaacEnc_MergedAutoCorrelation() argument 654 INT sc1 = FDKaacEnc_ScaleUpSpectrum(pSpectrum, spectrum, idx0, idx1); in FDKaacEnc_MergedAutoCorrelation() 655 INT sc2 = FDKaacEnc_ScaleUpSpectrum(pSpectrum, spectrum, idx1, idx2); in FDKaacEnc_MergedAutoCorrelation() 656 INT sc3 = FDKaacEnc_ScaleUpSpectrum(pSpectrum, spectrum, idx2, idx3); in FDKaacEnc_MergedAutoCorrelation() 657 INT sc4 = FDKaacEnc_ScaleUpSpectrum(pSpectrum, spectrum, idx3, idx4); in FDKaacEnc_MergedAutoCorrelation() 767 TNS_INFO *tnsInfo, INT sfbCnt, const FIXP_DBL *spectrum, in FDKaacEnc_TnsDetect() argument 808 spectrum, tC->isLowDelay, tC->acfWindow, tC->lpcStartLine, in FDKaacEnc_TnsDetect() [all …]
|
D | tonality.h | 109 void FDKaacEnc_CalculateFullTonality(FIXP_DBL *RESTRICT spectrum,
|
/external/webrtc/modules/audio_processing/utility/ |
D | delay_estimator_wrapper.cc | 62 static uint32_t BinarySpectrumFix(const uint16_t* spectrum, in BinarySpectrumFix() argument 75 if (spectrum[i] > 0) { in BinarySpectrumFix() 77 int32_t spectrum_q15 = ((int32_t)spectrum[i]) << (15 - q_domain); in BinarySpectrumFix() 85 int32_t spectrum_q15 = ((int32_t)spectrum[i]) << (15 - q_domain); in BinarySpectrumFix() 97 static uint32_t BinarySpectrumFloat(const float* spectrum, in BinarySpectrumFloat() argument 108 if (spectrum[i] > 0.0f) { in BinarySpectrumFloat() 109 threshold_spectrum[i].float_ = (spectrum[i] / 2); in BinarySpectrumFloat() 117 MeanEstimatorFloat(spectrum[i], kScale, &(threshold_spectrum[i].float_)); in BinarySpectrumFloat() 119 if (spectrum[i] > threshold_spectrum[i].float_) { in BinarySpectrumFloat()
|
/external/pffft/ |
D | pffft.hpp | 223 …lignedVector<Complex> & forward(const AlignedVector<T> & input, AlignedVector<Complex> & spectrum); 229 AlignedVector<T> & inverse(const AlignedVector<Complex> & spectrum, AlignedVector<T> & output); 330 Complex* forward(const T* input, Complex* spectrum); 332 T* inverse(const Complex* spectrum, T* output); 723 Fft<T>::forward(const AlignedVector<T> & input, AlignedVector<Complex> & spectrum) in forward() argument 725 forward( input.data(), spectrum.data() ); in forward() 726 return spectrum; in forward() 731 Fft<T>::inverse(const AlignedVector<Complex> & spectrum, AlignedVector<T> & output) in inverse() argument 733 inverse( spectrum.data(), output.data() ); in inverse() 796 Fft<T>::forward(const T* input, Complex * spectrum) in forward() argument [all …]
|
/external/aac/libAACdec/src/ |
D | aacdec_pns.cpp | 329 FIXP_DBL *spectrum = SPEC(pSpectrum, window, granuleLength); in CPns_Apply() local 342 GenerateRandomVector(spectrum + BandOffsets[band], bandWidth, in CPns_Apply() 347 noise_e = GenerateRandomVector(spectrum + BandOffsets[band], in CPns_Apply() 353 ScaleBand(spectrum + BandOffsets[band], bandWidth, in CPns_Apply()
|
/external/adhd/scripts/mic_testing/frontend/ |
D | analysis.js | 43 return fft.spectrum; 294 this.drawCurve(fftLeft.spectrum, "#FF0000", sampleRate); 295 this.drawCurve(fftRight.spectrum, "#00FF00", sampleRate); 369 this.spectrum = new Float32Array(bufferSize/2); 410 spectrum = this.spectrum; 474 spectrum[i] = 2 * Math.sqrt(real[i] * real[i] + imag[i] * imag[i]) /
|
/external/skia/gm/ |
D | all_bitmap_configs.cpp | 62 uint8_t spectrum[256]; in make_bitmap() local 64 spectrum[y] = y; in make_bitmap() 68 memcpy(bm.getAddr8(0, y), &spectrum[y], 128); in make_bitmap()
|
/external/skqp/gm/ |
D | all_bitmap_configs.cpp | 48 uint8_t spectrum[256]; in make_bitmap() local 50 spectrum[y] = y; in make_bitmap() 54 memcpy(bm.getAddr8(0, y), &spectrum[y], 128); in make_bitmap()
|