Skip to content

Commit

Permalink
Radar float (#55)
Browse files Browse the repository at this point in the history
* Fixed 0D tensors in MatX

* Converted radar pipeline to float
  • Loading branch information
cliffburdick authored Aug 3, 2023
1 parent d9b8f84 commit a04bfe3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class calcDets : public BaseOp<calcDets<O, I1, I2, I3, I4>> {
typename I1::type xpow = xpow_(idz, idy, idx);
typename I2::type ba = ba_(idz, idy, idx);
typename I2::type norm = norm_(idz, idy, idx);
typename I2::type alpha = norm * (std::pow(pfa_, -1.0 / norm) - 1);
typename I2::type alpha = norm * (cuda::std::powf(pfa_, -1.0f / norm) - 1.f);
out_(idz, idy, idx) = (xpow > alpha * ba) ? 1 : 0;
}

Expand Down

0 comments on commit a04bfe3

Please sign in to comment.