You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 line
571B

  1. //go:build !windows || !cufft
  2. package gpudemod
  3. func (r *BatchRunner) shiftFilterDecimateBatchImpl(iq []complex64) ([][]complex64, []int, error) {
  4. outs := make([][]complex64, len(r.slots))
  5. rates := make([]int, len(r.slots))
  6. for i := range r.slots {
  7. if !r.slots[i].active {
  8. continue
  9. }
  10. out, rate, err := r.eng.ShiftFilterDecimate(iq, r.slots[i].job.OffsetHz, r.slots[i].job.BW, r.slots[i].job.OutRate)
  11. if err != nil {
  12. return nil, nil, err
  13. }
  14. r.slots[i].out = out
  15. r.slots[i].rate = rate
  16. outs[i] = out
  17. rates[i] = rate
  18. }
  19. return outs, rates, nil
  20. }