Function

catlas_daxpby(_:_:_:_:_:_:_:)

Computes the sum of two vectors, scaling each one separately (double-precision).

Declaration

func catlas_daxpby(_ __N: Int32, _ __alpha: Double, _ __X: UnsafePointer<Double>!, _ __incX: Int32, _ __beta: Double, _ __Y: UnsafeMutablePointer<Double>!, _ __incY: Int32)

Parameters

N

Number of elements in the vector.

alpha

Scaling factor for X.

X

Input vector X.

incX

Stride within X. For example, if incX is 7, every 7th element is used.

beta

Scaling factor for Y.

Y

Input vector Y.

incY

Stride within Y. For example, if incY is 7, every 7th element is used.

Discussion

On return, the contents of vector Y are replaced with the result.

See Also

CATLAS and CBLAS Vector Functions

func catlas_caxpby(Int32, UnsafeRawPointer!, UnsafeRawPointer!, Int32, UnsafeRawPointer!, UnsafeMutableRawPointer!, Int32)

Computes the product of two vectors, scaling each one separately (single-precision complex).

func catlas_cset(Int32, UnsafeRawPointer!, UnsafeMutableRawPointer!, Int32)

Modifies a vector (single-precision complex) in place, setting each element to a given value.

func catlas_dset(Int32, Double, UnsafeMutablePointer<Double>!, Int32)

Modifies a vector (double-precision) in place, setting each element to a given value.

func catlas_saxpby(Int32, Float, UnsafePointer<Float>!, Int32, Float, UnsafeMutablePointer<Float>!, Int32)

Computes the sum of two vectors, scaling each one separately (single-precision).

func catlas_sset(Int32, Float, UnsafeMutablePointer<Float>!, Int32)

Modifies a vector (single-precision) in place, setting each element to a given value.

func catlas_zaxpby(Int32, UnsafeRawPointer!, UnsafeRawPointer!, Int32, UnsafeRawPointer!, UnsafeMutableRawPointer!, Int32)

Computes the sum of two vectors, scaling each one separately (double-precision complex).

func catlas_zset(Int32, UnsafeRawPointer!, UnsafeMutableRawPointer!, Int32)

Modifies a vector (double-precision complex) in place, setting each element to a given value.

func cblas_sdsdot(Int32, Float, UnsafePointer<Float>!, Int32, UnsafePointer<Float>!, Int32) -> Float

Computes the dot product of two single-precision vectors plus an initial single-precision value.

func cblas_cdotc_sub(Int32, UnsafeRawPointer!, Int32, UnsafeRawPointer!, Int32, UnsafeMutableRawPointer!)

Calculates the dot product of the complex conjugate of a single-precision complex vector with a second single-precision complex vector.

func cblas_dsdot(Int32, UnsafePointer<Float>!, Int32, UnsafePointer<Float>!, Int32) -> Double

Computes the double-precision dot product of a pair of single-precision vectors.

func cblas_zdotc_sub(Int32, UnsafeRawPointer!, Int32, UnsafeRawPointer!, Int32, UnsafeMutableRawPointer!)

Calculates the dot product of the complex conjugate of a double-precision complex vector with a second double-precision complex vector.