| 594 | } |
| 595 | #endif |
| 596 | void Permutohedral::compute ( MatrixXf & out, const MatrixXf & in, bool reverse ) const |
| 597 | { |
| 598 | if( out.cols() != in.cols() || out.rows() != in.rows() ) |
| 599 | out = 0*in; |
| 600 | if( in.rows() <= 2 ) |
| 601 | seqCompute( out.data(), in.data(), in.rows(), reverse ); |
| 602 | else |
| 603 | sseCompute( out.data(), in.data(), in.rows(), reverse ); |
| 604 | } |
| 605 | MatrixXf Permutohedral::compute ( const MatrixXf & in, bool reverse ) const |
| 606 | { |
| 607 | MatrixXf r; |