Componentwise Division
Dividing a vector by a dense vector with the same transpose flag (i.e. either blaze::columnVector or blaze::rowVector) via the division operator results in a componentwise division:
CompressedVector<int,columnVector> v1( 17UL );
DynamicVector<int,columnVector> v2( 17UL );
StaticVector<double,10UL,rowVector> v3;
DynamicVector<double,rowVector> v4( 10UL );
CompressedVector<int,columnVector> v5( v1 / v2 );
DynamicVector<double,rowVector> v6( v3 / v4 );
CompressedVector<int,columnVector> v7(
div( v1, v2 ) );
DynamicVector<double,rowVector> v8(
div( v3, v4 ) );
Efficient implementation of an arbitrary sized sparse vector.
Definition: CompressedVector.h:220
Efficient implementation of an arbitrary sized vector.
Definition: DynamicVector.h:223
BLAZE_ALWAYS_INLINE constexpr decltype(auto) div(T1 &&lhs, T2 &&rhs) noexcept(noexcept(lhs/rhs))
Division of the two given arguments.
Definition: Div.h:66
Note that all values of the divisor must be non-zero and that no checks are performed to assert this precondition!
Outer Quotient
The division between a column vector and a row vector results in the outer quotient of the two vectors:
Efficient implementation of a fixed-sized matrix.
Definition: StaticMatrix.h:249
Efficient implementation of a fixed-sized vector.
Definition: StaticVector.h:230
The trans()
function can be used to transpose a vector as necessary:
decltype(auto) trans(const DenseMatrix< MT, SO > &dm)
Calculation of the transpose of the given dense matrix.
Definition: DMatTransExpr.h:766
Note that all values of the divisor must be non-zero and that no checks are performed to assert this precondition!
Previous: Vector/Vector Multiplication Next: Matrix/Vector Multiplication