mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-10 02:39:03 +08:00
Move struct outside of method for C++03 compatibility.
This commit is contained in:
parent
051f9c1aff
commit
b92c71235d
@ -195,6 +195,14 @@ struct TensorEvaluator<const TensorReshapingOp<NewDimensions, ArgType>, Device>
|
|||||||
m_impl.getResourceRequirements(resources);
|
m_impl.getResourceRequirements(resources);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// required in block(OutputTensorBlock* output_block) const
|
||||||
|
// For C++03 compatibility this must be defined outside the method
|
||||||
|
struct BlockIteratorState {
|
||||||
|
Index stride;
|
||||||
|
Index span;
|
||||||
|
Index size;
|
||||||
|
Index count;
|
||||||
|
};
|
||||||
// TODO(andydavis) Reduce the overhead of this function.
|
// TODO(andydavis) Reduce the overhead of this function.
|
||||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void block(
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void block(
|
||||||
OutputTensorBlock* output_block) const {
|
OutputTensorBlock* output_block) const {
|
||||||
@ -219,12 +227,6 @@ struct TensorEvaluator<const TensorReshapingOp<NewDimensions, ArgType>, Device>
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Initialize output block iterator state.
|
// Initialize output block iterator state.
|
||||||
struct BlockIteratorState {
|
|
||||||
Index stride;
|
|
||||||
Index span;
|
|
||||||
Index size;
|
|
||||||
Index count;
|
|
||||||
};
|
|
||||||
array<BlockIteratorState, NumOutputDims> block_iter_state;
|
array<BlockIteratorState, NumOutputDims> block_iter_state;
|
||||||
|
|
||||||
for (Index i = 0; i < NumOutputDims; ++i) {
|
for (Index i = 0; i < NumOutputDims; ++i) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user