Function

cblas_dsyrk(_:_:_:_:_:_:_:_:_:_:_:)

Rank-k update—multiplies a symmetric matrix by its transpose and adds a second matrix (double precision).

Declaration

func cblas_dsyrk(_ __Order: CBLAS_ORDER, _ __Uplo: CBLAS_UPLO, _ __Trans: CBLAS_TRANSPOSE, _ __N: Int32, _ __K: Int32, _ __alpha: Double, _ __A: UnsafePointer<Double>!, _ __lda: Int32, _ __beta: Double, _ __C: UnsafeMutablePointer<Double>!, _ __ldc: Int32)

Parameters

Order

Specifies row-major (C) or column-major (Fortran) data ordering.

Uplo

Specifies whether to use the upper or lower triangle from the matrix. Valid values are 'U' or 'L'.

Trans

Specifies whether to use matrix A ('N' or 'n') or the transpose of A ('T', 't', 'C', or 'c').

N

Order of matrix C.

K

Number of columns in matrix A (or number of rows if matrix A is transposed).

alpha

Scaling factor for matrix A.

A

Matrix A.

lda

Leading dimension of array containing matrix A.

beta

Scaling factor for matrix C.

C

Matrix C.

ldc

Leading dimension of array containing matrix C.

Discussion

Calculates alpha*A*AT + beta*C; if transposed, calculates alpha*AT*A + beta*C.

See Also

Double-Precision Float Matrix Functions

func cblas_dasum(Int32, UnsafePointer<Double>!, Int32) -> Double

Computes the sum of the absolute values of elements in a vector (double-precision).

func cblas_daxpy(Int32, Double, UnsafePointer<Double>!, Int32, UnsafeMutablePointer<Double>!, Int32)

Computes a constant times a vector plus a vector (double-precision).

func cblas_dnrm2(Int32, UnsafePointer<Double>!, Int32) -> Double

Computes the L2 norm (Euclidian length) of a vector (double precision).

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

Multiplies each element of a vector by a constant (double-precision).

func cblas_dspmv(CBLAS_ORDER, CBLAS_UPLO, Int32, Double, UnsafePointer<Double>!, UnsafePointer<Double>!, Int32, Double, UnsafeMutablePointer<Double>!, Int32)

Scales a packed symmetric matrix, then multiplies by a vector, then scales and adds another vector (double precision).

func cblas_dspr(CBLAS_ORDER, CBLAS_UPLO, Int32, Double, UnsafePointer<Double>!, Int32, UnsafeMutablePointer<Double>!)

Rank one update: adds a packed symmetric matrix to the product of a scaling factor, a vector, and its transpose (double precision).

func cblas_dsyr(CBLAS_ORDER, CBLAS_UPLO, Int32, Double, UnsafePointer<Double>!, Int32, UnsafeMutablePointer<Double>!, Int32)

Rank one update: adds a symmetric matrix to the product of a scaling factor, a vector, and its transpose (double precision).