Xped
|
#include <TensorBase.hpp>
Public Types | |
typedef TensorTraits< Derived >::Scalar | Scalar |
typedef TensorTraits< Derived >::Symmetry | Symmetry |
using | AllocationPolicy = typename TensorTraits< Derived >::AllocationPolicy |
using | MatrixType = PlainInterface::MType< Scalar > |
Public Member Functions | |
XPED_CONST AdjointOp< Derived > | adjoint () XPED_CONST |
template<typename ReturnScalar > | |
XPED_CONST CoeffUnaryOp< Derived, ReturnScalar > | unaryExpr (const std::function< ReturnScalar(Scalar)> &coeff_func) XPED_CONST |
XPED_CONST BlockUnaryOp< Derived > | unaryExpr (const std::function< MatrixType(const MatrixType &)> &coeff_func) XPED_CONST |
XPED_CONST CoeffUnaryOp< Derived, Scalar > | sqrt () XPED_CONST |
XPED_CONST CoeffUnaryOp< Derived, Scalar > | inv () XPED_CONST |
XPED_CONST CoeffUnaryOp< Derived, Scalar > | square () XPED_CONST |
XPED_CONST CoeffUnaryOp< Derived, typename ScalarTraits< Scalar >::Real > | abs () XPED_CONST |
template<typename OtherScalar > | |
XPED_CONST CoeffUnaryOp< Derived, OtherScalar > | cast () XPED_CONST |
XPED_CONST BlockUnaryOp< Derived > | msqrt () XPED_CONST |
XPED_CONST BlockUnaryOp< Derived > | mexp (Scalar factor) XPED_CONST |
Derived & | operator+= (const Scalar offset) |
Derived & | operator-= (const Scalar offset) |
Derived & | operator*= (const Scalar factor) |
Derived & | operator/= (const Scalar divisor) |
XPED_CONST DiagCoeffUnaryOp< Derived > | diagUnaryExpr (const std::function< Scalar(Scalar)> &coeff_func) XPED_CONST |
XPED_CONST DiagCoeffUnaryOp< Derived > | diag_inv () XPED_CONST |
XPED_CONST DiagCoeffUnaryOp< Derived > | diag_sqrt () XPED_CONST |
template<typename OtherDerived > | |
XPED_CONST DiagCoeffBinaryOp< Derived, OtherDerived > | diagBinaryExpr (XPED_CONST TensorBase< OtherDerived > &other, const std::function< Scalar(Scalar, Scalar)> &coeff_func) XPED_CONST |
template<typename OtherDerived > | |
XPED_CONST CoeffBinaryOp< Derived, OtherDerived > | binaryExpr (XPED_CONST TensorBase< OtherDerived > &other, const std::function< Scalar(Scalar, Scalar)> &coeff_func) XPED_CONST |
template<typename OtherDerived > | |
Derived & | operator+= (XPED_CONST TensorBase< OtherDerived > &other) |
template<typename OtherDerived > | |
Derived & | operator-= (XPED_CONST TensorBase< OtherDerived > &other) |
template<bool = false, typename OtherDerived > | |
Tensor< std::common_type_t< Scalar, typename TensorTraits< OtherDerived >::Scalar >, TensorTraits< Derived >::Rank, TensorTraits< typename std::remove_const< std::remove_reference_t< OtherDerived > >::type >::CoRank, Symmetry, false, AllocationPolicy > | operator* (XPED_CONST TensorBase< OtherDerived > &other) XPED_CONST |
template<bool TRACK = false, typename OtherDerived > | |
Tensor< std::common_type_t< Scalar, typename TensorTraits< OtherDerived >::Scalar >, Rank, TensorTraits< typename std::remove_const< std::remove_reference_t< OtherDerived > >::type >::CoRank, Symmetry, false, AllocationPolicy > | operator* (TensorBase< OtherDerived > &&other) XPED_CONST |
template<bool = false> | |
Scalar | trace () XPED_CONST |
ScalarTraits< Scalar >::Real | maxNorm () XPED_CONST |
ScalarTraits< Scalar >::Real | squaredNorm () XPED_CONST |
ScalarTraits< Scalar >::Real | norm () XPED_CONST |
ScalarTraits< Scalar >::Real | maxCoeff (std::size_t &max_block, PlainInterface::MIndextype &max_row, PlainInterface::MIndextype &max_col) XPED_CONST |
Tensor< Scalar, Rank, CoRank, Symmetry, false, AllocationPolicy > | eval () const |
const Derived & | derived () const |
Derived & | derived () |
template<bool > | |
TensorTraits< Derived >::Scalar | trace () XPED_CONST |
template<bool , typename OtherDerived > | |
Tensor< std::common_type_t< typename TensorTraits< Derived >::Scalar, typename TensorTraits< OtherDerived >::Scalar >, TensorTraits< Derived >::Rank, TensorTraits< typename std::remove_const< std::remove_reference_t< OtherDerived > >::type >::CoRank, typename TensorTraits< Derived >::Symmetry, false, typename TensorTraits< Derived >::AllocationPolicy > | operator* (XPED_CONST TensorBase< OtherDerived > &other) XPED_CONST |
Static Public Attributes | |
static constexpr std::size_t | Rank = TensorTraits<Derived>::Rank |
static constexpr std::size_t | CoRank = TensorTraits<Derived>::CoRank |
Friends | |
template<typename , std::size_t , std::size_t , typename , bool , typename > | |
class | Tensor |
template<typename OtherDerived > | |
class | TensorBase |
using Xped::TensorBase< Derived >::AllocationPolicy = typename TensorTraits<Derived>::AllocationPolicy |
using Xped::TensorBase< Derived >::MatrixType = PlainInterface::MType<Scalar> |
typedef TensorTraits<Derived>::Scalar Xped::TensorBase< Derived >::Scalar |
typedef TensorTraits<Derived>::Symmetry Xped::TensorBase< Derived >::Symmetry |
XPED_CONST CoeffUnaryOp< Derived, typename ScalarTraits< typename TensorTraits< Derived >::Scalar >::Real > Xped::TensorBase< Derived >::abs |
XPED_CONST AdjointOp< Derived > Xped::TensorBase< Derived >::adjoint |
XPED_CONST CoeffBinaryOp< Derived, OtherDerived > Xped::TensorBase< Derived >::binaryExpr | ( | XPED_CONST TensorBase< OtherDerived > & | other, |
const std::function< Scalar(Scalar, Scalar)> & | coeff_func | ||
) |
XPED_CONST CoeffUnaryOp< Derived, OtherScalar > Xped::TensorBase< Derived >::cast |
|
inline |
|
inline |
XPED_CONST DiagCoeffUnaryOp< Derived > Xped::TensorBase< Derived >::diag_inv |
XPED_CONST DiagCoeffUnaryOp< Derived > Xped::TensorBase< Derived >::diag_sqrt |
XPED_CONST DiagCoeffBinaryOp< Derived, OtherDerived > Xped::TensorBase< Derived >::diagBinaryExpr | ( | XPED_CONST TensorBase< OtherDerived > & | other, |
const std::function< Scalar(Scalar, Scalar)> & | coeff_func | ||
) |
XPED_CONST DiagCoeffUnaryOp< Derived > Xped::TensorBase< Derived >::diagUnaryExpr | ( | const std::function< Scalar(Scalar)> & | coeff_func | ) |
|
inline |
XPED_CONST CoeffUnaryOp< Derived, typename TensorTraits< Derived >::Scalar > Xped::TensorBase< Derived >::inv |
ScalarTraits< typenameTensorTraits< Derived >::Scalar >::Real Xped::TensorBase< Derived >::maxCoeff | ( | std::size_t & | max_block, |
PlainInterface::MIndextype & | max_row, | ||
PlainInterface::MIndextype & | max_col | ||
) |
ScalarTraits< typenameTensorTraits< Derived >::Scalar >::Real Xped::TensorBase< Derived >::maxNorm |
XPED_CONST BlockUnaryOp< Derived > Xped::TensorBase< Derived >::mexp | ( | Scalar | factor | ) |
XPED_CONST BlockUnaryOp< Derived > Xped::TensorBase< Derived >::msqrt |
|
inline |
|
inline |
Tensor< std::common_type_t< Scalar, typename TensorTraits< OtherDerived >::Scalar >, TensorTraits< Derived >::Rank, TensorTraits< typename std::remove_const< std::remove_reference_t< OtherDerived > >::type >::CoRank, Symmetry, false, AllocationPolicy > Xped::TensorBase< Derived >::operator* | ( | XPED_CONST TensorBase< OtherDerived > & | other | ) |
Tensor< std::common_type_t< typename TensorTraits< Derived >::Scalar, typename TensorTraits< OtherDerived >::Scalar >, TensorTraits< Derived >::Rank, TensorTraits< typename std::remove_const< std::remove_reference_t< OtherDerived > >::type >::CoRank, typename TensorTraits< Derived >::Symmetry, false, typename TensorTraits< Derived >::AllocationPolicy > Xped::TensorBase< Derived >::operator* | ( | XPED_CONST TensorBase< OtherDerived > & | other | ) |
Derived & Xped::TensorBase< Derived >::operator*= | ( | const Scalar | factor | ) |
Derived & Xped::TensorBase< Derived >::operator+= | ( | const Scalar | offset | ) |
Derived & Xped::TensorBase< Derived >::operator+= | ( | XPED_CONST TensorBase< OtherDerived > & | other | ) |
Derived & Xped::TensorBase< Derived >::operator-= | ( | const Scalar | offset | ) |
Derived & Xped::TensorBase< Derived >::operator-= | ( | XPED_CONST TensorBase< OtherDerived > & | other | ) |
Derived & Xped::TensorBase< Derived >::operator/= | ( | const Scalar | divisor | ) |
XPED_CONST CoeffUnaryOp< Derived, typename TensorTraits< Derived >::Scalar > Xped::TensorBase< Derived >::sqrt |
XPED_CONST CoeffUnaryOp< Derived, typename TensorTraits< Derived >::Scalar > Xped::TensorBase< Derived >::square |
ScalarTraits< typenameTensorTraits< Derived >::Scalar >::Real Xped::TensorBase< Derived >::squaredNorm |
TensorTraits< Derived >::Scalar Xped::TensorBase< Derived >::trace | ( | ) |
XPED_CONST BlockUnaryOp< Derived > Xped::TensorBase< Derived >::unaryExpr | ( | const std::function< MatrixType(const MatrixType &)> & | coeff_func | ) |
XPED_CONST CoeffUnaryOp< Derived, ReturnScalar > Xped::TensorBase< Derived >::unaryExpr | ( | const std::function< ReturnScalar(Scalar)> & | coeff_func | ) |
|
friend |
|
staticconstexpr |
|
staticconstexpr |