Contents

vvceil(_:_:_:)

Calculates the ceiling of each element in an array of double-precision values.

Declaration

func vvceil(_: UnsafeMutablePointer<Double>, _: UnsafePointer<Double>, _: UnsafePointer<Int32>)

Discussion

Parameters:

parameter 1

The output array, y.

parameter 2

The input array, x.

parameter 3

The number of elements in the arrays.

The following code shows an example of using vvceil(_:_:_:).

double x[] = {1.2, 5.5, 3.9, 26.0};
double y[4];
int n = 4;
 
vvceil(y, x, &n);
 
NSLog(@"y: [%lf, %lf, %lf, %lf]", y[0], y[1], y[2], y[3]);

See Also

Array-Oriented Arithmetic and Auxiliary Functions