mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
Big 957, workaround MSVC/ICC compilation issue
This commit is contained in:
parent
81b3d29b26
commit
bb3e5c29cc
@ -355,7 +355,8 @@ const typename SparseMatrixBase<Derived>::ConstInnerVectorReturnType SparseMatri
|
|||||||
* is col-major (resp. row-major).
|
* is col-major (resp. row-major).
|
||||||
*/
|
*/
|
||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
Block<Derived,Dynamic,Dynamic,true> SparseMatrixBase<Derived>::innerVectors(Index outerStart, Index outerSize)
|
typename SparseMatrixBase<Derived>::InnerVectorsReturnType
|
||||||
|
SparseMatrixBase<Derived>::innerVectors(Index outerStart, Index outerSize)
|
||||||
{
|
{
|
||||||
return Block<Derived,Dynamic,Dynamic,true>(derived(),
|
return Block<Derived,Dynamic,Dynamic,true>(derived(),
|
||||||
IsRowMajor ? outerStart : 0, IsRowMajor ? 0 : outerStart,
|
IsRowMajor ? outerStart : 0, IsRowMajor ? 0 : outerStart,
|
||||||
@ -367,7 +368,8 @@ Block<Derived,Dynamic,Dynamic,true> SparseMatrixBase<Derived>::innerVectors(Inde
|
|||||||
* is col-major (resp. row-major). Read-only.
|
* is col-major (resp. row-major). Read-only.
|
||||||
*/
|
*/
|
||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
const Block<const Derived,Dynamic,Dynamic,true> SparseMatrixBase<Derived>::innerVectors(Index outerStart, Index outerSize) const
|
const typename SparseMatrixBase<Derived>::ConstInnerVectorsReturnType
|
||||||
|
SparseMatrixBase<Derived>::innerVectors(Index outerStart, Index outerSize) const
|
||||||
{
|
{
|
||||||
return Block<const Derived,Dynamic,Dynamic,true>(derived(),
|
return Block<const Derived,Dynamic,Dynamic,true>(derived(),
|
||||||
IsRowMajor ? outerStart : 0, IsRowMajor ? 0 : outerStart,
|
IsRowMajor ? outerStart : 0, IsRowMajor ? 0 : outerStart,
|
||||||
@ -497,3 +499,4 @@ public:
|
|||||||
} // end namespace Eigen
|
} // end namespace Eigen
|
||||||
|
|
||||||
#endif // EIGEN_SPARSE_BLOCK_H
|
#endif // EIGEN_SPARSE_BLOCK_H
|
||||||
|
|
||||||
|
@ -404,8 +404,10 @@ template<typename Derived> class SparseMatrixBase : public EigenBase<Derived>
|
|||||||
const ConstInnerVectorReturnType innerVector(Index outer) const;
|
const ConstInnerVectorReturnType innerVector(Index outer) const;
|
||||||
|
|
||||||
// set of inner-vectors
|
// set of inner-vectors
|
||||||
Block<Derived,Dynamic,Dynamic,true> innerVectors(Index outerStart, Index outerSize);
|
typedef Block<Derived,Dynamic,Dynamic,true> InnerVectorsReturnType;
|
||||||
const Block<const Derived,Dynamic,Dynamic,true> innerVectors(Index outerStart, Index outerSize) const;
|
typedef Block<const Derived,Dynamic,Dynamic,true> ConstInnerVectorsReturnType;
|
||||||
|
InnerVectorsReturnType innerVectors(Index outerStart, Index outerSize);
|
||||||
|
const ConstInnerVectorsReturnType innerVectors(Index outerStart, Index outerSize) const;
|
||||||
|
|
||||||
/** \internal use operator= */
|
/** \internal use operator= */
|
||||||
template<typename DenseDerived>
|
template<typename DenseDerived>
|
||||||
|
Loading…
Reference in New Issue
Block a user