Function

catlas_sset(_:_:_:_:)

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

Declaration

func catlas_sset(_ __N: Int32, _ __alpha: Float, _ __X: UnsafeMutablePointer<Float>!, _ __incX: Int32)

Parameters

N

The number of elements in the vector.

alpha

The new value.

X

The vector to modify.

incX

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

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_daxpby(Int32, Double, UnsafePointer<Double>!, Int32, Double, UnsafeMutablePointer<Double>!, Int32)

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

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_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.