vec_splats

Purpose

Returns a vector of which the value of each element is set to a.

Syntax

d=vec_splats(a)

Result and argument types

The following table describes the types of the returned value and the function arguments.

d a
vector4double double

Result value

The value of each element of the result is a.

Formula

d[0] = a
d[1] = a
d[2] = a
d[3] = a

Example

a = 50.0
d: (50.0, 50.0, 50.0, 50.0)