Go to the documentation of this file.
10 #ifndef EIGEN_SPARSE_PERMUTATION_H
11 #define EIGEN_SPARSE_PERMUTATION_H
19 template<
typename ExpressionType,
int S
ide,
bool Transposed>
37 template<
typename Dest,
typename PermutationType>
38 static inline void run(Dest& dst,
const PermutationType&
perm,
const ExpressionType& xpr)
56 for(
typename MatrixTypeCleaned::InnerIterator it(
mat,jsrc); it; ++it)
70 perm_cpy =
perm.transpose();
73 for(
typename MatrixTypeCleaned::InnerIterator it(
mat,
j); it; ++it)
77 for(
typename MatrixTypeCleaned::InnerIterator it(
mat,
j); it; ++it)
78 tmp.insertByOuterInner(perm_cpy.
indices().coeff(it.index()),
j) = it.value();
95 template<
typename Lhs,
typename Rhs,
int ProductTag>
97 :
public evaluator<typename permutation_matrix_product<Rhs,OnTheLeft,false,SparseShape>::ReturnType>
110 ::new (
static_cast<Base*
>(
this))
Base(m_result);
118 template<
typename Lhs,
typename Rhs,
int ProductTag>
120 :
public evaluator<typename permutation_matrix_product<Lhs,OnTheRight,false,SparseShape>::ReturnType>
133 ::new (
static_cast<Base*
>(
this))
Base(m_result);
145 template<
typename SparseDerived,
typename PermDerived>
152 template<
typename SparseDerived,
typename PermDerived>
160 template<
typename SparseDerived,
typename PermutationType>
169 template<
typename SparseDerived,
typename PermutationType>
178 #endif // EIGEN_SPARSE_SELFADJOINTVIEW_H
idx_t idx_t idx_t idx_t idx_t * perm
Namespace containing all symbols from the Eigen library.
A versatible sparse matrix representation.
remove_all< MatrixType >::type MatrixTypeCleaned
EIGEN_DEVICE_FUNC Derived & derived()
const IndicesType & indices() const
evaluator< PlainObject > Base
MatrixTypeCleaned::Scalar Scalar
const unsigned int RowMajorBit
Product< Lhs, Rhs, AliasFreeProduct > XprType
std::vector< Array2i > sizes
const EIGEN_DEVICE_FUNC Product< MatrixDerived, PermutationDerived, AliasFreeProduct > operator*(const MatrixBase< MatrixDerived > &matrix, const PermutationBase< PermutationDerived > &permutation)
permutation_matrix_product< Lhs, OnTheRight, false, SparseShape >::ReturnType PlainObject
nested_eval< ExpressionType, 1 >::type MatrixType
MatrixTypeCleaned::StorageIndex StorageIndex
Expression of the product of two arbitrary matrices or vectors.
Product< Lhs, Rhs, AliasFreeProduct > XprType
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE LhsNestedCleaned & lhs() const
void reserve(Index reserveSize)
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
product_evaluator(const XprType &xpr)
evaluator< PlainObject > Base
Base class for permutations.
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE RhsNestedCleaned & rhs() const
ProductLieGroup< Point2, Pose2 > Product
Base class of any sparse matrices or sparse expressions.
static void run(Dest &dst, const PermutationType &perm, const ExpressionType &xpr)
Scalar & insertByOuterInner(Index j, Index i)
const unsigned int EvalBeforeNestingBit
internal::conditional< MoveOuter, SparseMatrix< Scalar, SrcStorageOrder, StorageIndex >, SparseMatrix< Scalar, int(SrcStorageOrder)==RowMajor?ColMajor:RowMajor, StorageIndex > >::type ReturnType
permutation_matrix_product< Rhs, OnTheLeft, false, SparseShape >::ReturnType PlainObject
product_evaluator(const XprType &xpr)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:04:43