Next: Finding maximum and minimum elements of vectors, Previous: Exchanging elements, Up: Vectors [Index]
This function adds the elements of vector b to the elements of vector a. The result a_i \leftarrow a_i + b_i is stored in a and b remains unchanged. The two vectors must have the same length.
This function subtracts the elements of vector b from the elements of vector a. The result a_i \leftarrow a_i - b_i is stored in a and b remains unchanged. The two vectors must have the same length.
This function multiplies the elements of vector a by the elements of vector b. The result a_i \leftarrow a_i * b_i is stored in a and b remains unchanged. The two vectors must have the same length.
This function divides the elements of vector a by the elements of vector b. The result a_i \leftarrow a_i / b_i is stored in a and b remains unchanged. The two vectors must have the same length.
This function multiplies the elements of vector a by the constant factor x. The result a_i \leftarrow x a_i is stored in a.
This function adds the constant value x to the elements of the vector a. The result a_i \leftarrow a_i + x is stored in a.