mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-26 06:44:27 +08:00
Add typedefs for return types of SparseMatrixBase::selfadjointView
This commit is contained in:
parent
9e885fb766
commit
d4317a85e8
@ -97,7 +97,6 @@ template<typename Derived> class SparseMatrixBase : public EigenBase<Derived>
|
|||||||
Transpose<const Derived>
|
Transpose<const Derived>
|
||||||
>::type AdjointReturnType;
|
>::type AdjointReturnType;
|
||||||
typedef Transpose<Derived> TransposeReturnType;
|
typedef Transpose<Derived> TransposeReturnType;
|
||||||
template<unsigned int UpLo> struct SelfAdjointViewReturnType { typedef SelfAdjointView<Derived, UpLo> Type; };
|
|
||||||
typedef typename internal::add_const<Transpose<const Derived> >::type ConstTransposeReturnType;
|
typedef typename internal::add_const<Transpose<const Derived> >::type ConstTransposeReturnType;
|
||||||
|
|
||||||
// FIXME storage order do not match evaluator storage order
|
// FIXME storage order do not match evaluator storage order
|
||||||
@ -300,9 +299,14 @@ template<typename Derived> class SparseMatrixBase : public EigenBase<Derived>
|
|||||||
|
|
||||||
template<int Mode>
|
template<int Mode>
|
||||||
inline const TriangularView<const Derived, Mode> triangularView() const;
|
inline const TriangularView<const Derived, Mode> triangularView() const;
|
||||||
|
|
||||||
|
template<unsigned int UpLo> struct SelfAdjointViewReturnType { typedef SparseSelfAdjointView<Derived, UpLo> Type; };
|
||||||
|
template<unsigned int UpLo> struct ConstSelfAdjointViewReturnType { typedef const SparseSelfAdjointView<const Derived, UpLo> Type; };
|
||||||
|
|
||||||
template<unsigned int UpLo> inline const SparseSelfAdjointView<const Derived, UpLo> selfadjointView() const;
|
template<unsigned int UpLo> inline
|
||||||
template<unsigned int UpLo> inline SparseSelfAdjointView<Derived, UpLo> selfadjointView();
|
typename ConstSelfAdjointViewReturnType<UpLo>::Type selfadjointView() const;
|
||||||
|
template<unsigned int UpLo> inline
|
||||||
|
typename SelfAdjointViewReturnType<UpLo>::Type selfadjointView();
|
||||||
|
|
||||||
template<typename OtherDerived> Scalar dot(const MatrixBase<OtherDerived>& other) const;
|
template<typename OtherDerived> Scalar dot(const MatrixBase<OtherDerived>& other) const;
|
||||||
template<typename OtherDerived> Scalar dot(const SparseMatrixBase<OtherDerived>& other) const;
|
template<typename OtherDerived> Scalar dot(const SparseMatrixBase<OtherDerived>& other) const;
|
||||||
|
@ -169,17 +169,17 @@ template<typename MatrixType, unsigned int _Mode> class SparseSelfAdjointView
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
template<unsigned int Mode>
|
template<unsigned int UpLo>
|
||||||
const SparseSelfAdjointView<const Derived, Mode> SparseMatrixBase<Derived>::selfadjointView() const
|
typename SparseMatrixBase<Derived>::template ConstSelfAdjointViewReturnType<UpLo>::Type SparseMatrixBase<Derived>::selfadjointView() const
|
||||||
{
|
{
|
||||||
return SparseSelfAdjointView<const Derived, Mode>(derived());
|
return SparseSelfAdjointView<const Derived, UpLo>(derived());
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
template<unsigned int Mode>
|
template<unsigned int UpLo>
|
||||||
SparseSelfAdjointView<Derived, Mode> SparseMatrixBase<Derived>::selfadjointView()
|
typename SparseMatrixBase<Derived>::template SelfAdjointViewReturnType<UpLo>::Type SparseMatrixBase<Derived>::selfadjointView()
|
||||||
{
|
{
|
||||||
return SparseSelfAdjointView<Derived, Mode>(derived());
|
return SparseSelfAdjointView<Derived, UpLo>(derived());
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
|
Loading…
x
Reference in New Issue
Block a user