mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Consolidate multiple implementations of divup/div_up/div_ceil.
This commit is contained in:
@@ -898,7 +898,7 @@ struct TensorEvaluator<const TensorBroadcastingOp<Broadcast, ArgType>, Device>
|
||||
// First multiple after a. This is b when <= bcast_dim_left_index +
|
||||
// bcast_dim_size.
|
||||
const Index first_multiple =
|
||||
divup<Index>(bcast_dim_left_index, input_bcast_dim_size) *
|
||||
numext::div_ceil<Index>(bcast_dim_left_index, input_bcast_dim_size) *
|
||||
input_bcast_dim_size;
|
||||
|
||||
if (first_multiple <= bcast_dim_left_index + params.bcast_dim_size) {
|
||||
|
||||
Reference in New Issue
Block a user