| 
    BLAS++ 2024.05.31
    
   BLAS C++ API 
   | 
 
\(A = \alpha xx^T + A\) More...
Functions | |
| template<typename TA , typename TX > | |
| void | blas::syr (blas::Layout layout, blas::Uplo uplo, int64_t n, blas::scalar_type< TA, TX > alpha, TX const *x, int64_t incx, TA *A, int64_t lda) | 
| Symmetric matrix rank-1 update:   | |
| void | blas::syr (blas::Layout layout, blas::Uplo uplo, int64_t n, float alpha, float const *x, int64_t incx, float *A, int64_t lda) | 
| CPU, float version.  | |
| void | blas::syr (blas::Layout layout, blas::Uplo uplo, int64_t n, double alpha, double const *x, int64_t incx, double *A, int64_t lda) | 
| CPU, double version.  | |
\(A = \alpha xx^T + A\)
| void blas::syr | ( | blas::Layout | layout, | 
| blas::Uplo | uplo, | ||
| int64_t | n, | ||
| blas::scalar_type< TA, TX > | alpha, | ||
| TX const * | x, | ||
| int64_t | incx, | ||
| TA * | A, | ||
| int64_t | lda | ||
| ) | 
Symmetric matrix rank-1 update:
\[ A = \alpha x x^T + A, \]
where alpha is a scalar, x is a vector, and A is an n-by-n symmetric matrix.
Generic implementation for arbitrary data types.
| [in] | layout | Matrix storage, Layout::ColMajor or Layout::RowMajor. | 
| [in] | uplo | What part of the matrix A is referenced, the opposite triangle being assumed from symmetry.
  | 
| [in] | n | Number of rows and columns of the matrix A. n >= 0. | 
| [in] | alpha | Scalar alpha. If alpha is zero, A is not updated. | 
| [in] | x | The n-element vector x, in an array of length (n-1)*abs(incx) + 1. | 
| [in] | incx | Stride between elements of x. incx must not be zero. If incx < 0, uses elements of x in reverse order: x(n-1), ..., x(0). | 
| [in,out] | A | The n-by-n matrix A, stored in an lda-by-n array [RowMajor: n-by-lda]. | 
| [in] | lda | Leading dimension of A. lda >= max(1, n). |