Lines 353-369
template<typename Derived> class SparseM
Link Here
|
353 |
template<typename OtherDerived> friend |
353 |
template<typename OtherDerived> friend |
354 |
const typename DenseSparseProductReturnType<OtherDerived,Derived>::Type |
354 |
const typename DenseSparseProductReturnType<OtherDerived,Derived>::Type |
355 |
operator*(const MatrixBase<OtherDerived>& lhs, const Derived& rhs) |
355 |
operator*(const MatrixBase<OtherDerived>& lhs, const Derived& rhs) |
356 |
{ return typename DenseSparseProductReturnType<OtherDerived,Derived>::Type(lhs.derived(),rhs); } |
356 |
{ return typename DenseSparseProductReturnType<OtherDerived,Derived>::Type(lhs.derived(),rhs); } |
357 |
|
357 |
|
358 |
/** sparse * dense (returns a dense object unless it is an outer product) */ |
358 |
/** sparse * dense (returns a dense object unless it is an outer product) */ |
359 |
template<typename OtherDerived> |
359 |
template<typename OtherDerived> |
360 |
const typename SparseDenseProductReturnType<Derived,OtherDerived>::Type |
360 |
const typename SparseDenseProductReturnType<Derived,OtherDerived>::Type |
361 |
operator*(const MatrixBase<OtherDerived> &other) const; |
361 |
operator*(const MatrixBase<OtherDerived> &other) const |
|
|
362 |
{ return typename SparseDenseProductReturnType<Derived,OtherDerived>::Type(derived(), other.derived()); } |
362 |
|
363 |
|
363 |
/** \returns an expression of P H P^-1 where H is the matrix represented by \c *this */ |
364 |
/** \returns an expression of P H P^-1 where H is the matrix represented by \c *this */ |
364 |
SparseSymmetricPermutationProduct<Derived,Upper|Lower> twistedBy(const PermutationMatrix<Dynamic,Dynamic,Index>& perm) const |
365 |
SparseSymmetricPermutationProduct<Derived,Upper|Lower> twistedBy(const PermutationMatrix<Dynamic,Dynamic,Index>& perm) const |
365 |
{ |
366 |
{ |
366 |
return SparseSymmetricPermutationProduct<Derived,Upper|Lower>(derived(), perm); |
367 |
return SparseSymmetricPermutationProduct<Derived,Upper|Lower>(derived(), perm); |
367 |
} |
368 |
} |
368 |
|
369 |
|
369 |
template<typename OtherDerived> |
370 |
template<typename OtherDerived> |