Represent a sum of scalar products. It stores:
Public Member Functions | |
const sofa::type::vector< ScalarProduct > & | getIndices () const |
IndexValueProduct ()=default | |
template<class AnyScalar , typename = std::enable_if_t<std::is_scalar_v<AnyScalar> >> | |
IndexValueProduct (AnyScalar s) | |
operator Scalar () const | |
template<class AnyScalar > | |
IndexValueProduct (const IndexValueProduct< AnyScalar > &other) | |
template<class AnyScalar > | |
void | operator+= (const IndexValueProduct< AnyScalar > &other) |
Friends | |
template<class ScalarLhs , class ScalarRhs > | |
IndexValueProduct< decltype(ScalarLhs{} *ScalarRhs{})> | operator* (const IndexedValue< ScalarLhs > &lhs, const IndexedValue< ScalarRhs > &rhs) |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |