la_difference(_:_:)
Declaration
func la_difference(_ obj_left: la_object_t, _ obj_right: la_object_t) -> la_object_tDiscussion
Compute the element-wise difference of two vectors or matrices.
If either source operand is not a vector or matrix or splat, or if both operands are splats, the result has status LA_INVALID_PARAMETER_ERROR.
The two operands must have the same dimensions. If they do not, the result will have status LA_DIMENSION_MISMATCH_ERROR. For simplicity, a vector of length n, a 1xn matrix, and an nx1 matrix are all treated as having the same dimensions. If 1xn and nx1 or nx1 and 1xn vectors are passed, an nx1 vector will be created, otherwise orientation matches input.
The result has the same dimensions as the operands, and each element in the result is given by subtracting the corresponding element of obj_right from the corresponding element of obj_left.
See Also
Functions
caxpy_(_:_:_:_:_:_:)ccopy_(_:_:_:_:_:)cdotc_(_:_:_:_:_:_:)cdotu_(_:_:_:_:_:_:)cgbmv_(_:_:_:_:_:_:_:_:_:_:_:_:_:)cgemm_(_:_:_:_:_:_:_:_:_:_:_:_:_:)cgemv_(_:_:_:_:_:_:_:_:_:_:_:)cgerc_(_:_:_:_:_:_:_:_:_:)cgeru_(_:_:_:_:_:_:_:_:_:)chbmv_(_:_:_:_:_:_:_:_:_:_:_:)chemm_(_:_:_:_:_:_:_:_:_:_:_:_:)chemv_(_:_:_:_:_:_:_:_:_:_:)cher2_(_:_:_:_:_:_:_:_:_:)cher2k_(_:_:_:_:_:_:_:_:_:_:_:_:)cher_(_:_:_:_:_:_:_:)