la_inner_product(_:_:)
Declaration
func la_inner_product(_ vector_left: la_object_t, _ vector_right: la_object_t) -> la_object_tDiscussion
Compute the inner product of two vectors.
If either operand is a matrix that is not 1xn or nx1, the result has the status LA_INVALID_PARAMETER_ERROR.
If either operand is not a vector or matrix or splat, or if both operands are splats, the result has the status LA_INVALID_PARAMETER_ERROR.
If the lengths of the two operands do not match, the result has the status LA_DIMENSION_MISMATCH_ERROR.
Otherwise the result is a 1x1 matrix containing the inner product:
sum_{i=0...length} vector_left[i] * vector_right[i]See Also
Functions
caxpy_(_:_:_:_:_:_:)ccopy_(_:_:_:_:_:)cdotc_(_:_:_:_:_:_:)cdotu_(_:_:_:_:_:_:)cgbmv_(_:_:_:_:_:_:_:_:_:_:_:_:_:)cgemm_(_:_:_:_:_:_:_:_:_:_:_:_:_:)cgemv_(_:_:_:_:_:_:_:_:_:_:_:)cgerc_(_:_:_:_:_:_:_:_:_:)cgeru_(_:_:_:_:_:_:_:_:_:)chbmv_(_:_:_:_:_:_:_:_:_:_:_:)chemm_(_:_:_:_:_:_:_:_:_:_:_:_:)chemv_(_:_:_:_:_:_:_:_:_:_:)cher2_(_:_:_:_:_:_:_:_:_:)cher2k_(_:_:_:_:_:_:_:_:_:_:_:_:)cher_(_:_:_:_:_:_:_:)