================== BLAS Level 1: axpy [TOC] ================== *axpy* (defined in namespace `flens::blas`) computes $y \leftarrow y +\alpha x$ where $x, y$ are vectors and $\alpha$ is a constant scalar. *axpy* is short for *a*lpha times *x* *p*lus *y*. We also provide a variant that does the computation for matrices instead of vectors. Vector Variant ============== *--[CODEREF]----------------------------------------------------------------* | | | template | | typename RestrictTo::value | | && IsDenseVector::value, | | void>::Type | | axpy(const ALPHA &alpha, const VX &x, VY &&y); | | | *---------------------------------------------------------------------------* [c:@N@flens@N@blas@FT@>3#T#T#Taxpy#&1t0.0#&1t0.1#&t] [0.2#templatetypenameALPHA,typenameVX,typenameVYtyp] [enameRestrictToIsDenseVectorVXvalueandIsDenseVecto] [rVYvalue,voidType ] alpha `(input) real scalar` + Scaling factor for the values in $x$. x `(input) real or complex valued DenseVector` + Vector $x$. y `(input/output) real or complex valued DenseVector` + Vector $y$. Matrix Variant (Level 1 Extension) ================================== *--[CODEREF]----------------------------------------------------------------* | | | template | | typename RestrictTo::value | | && IsGeMatrix::value, | | void>::Type | | axpy(Transpose trans, const ALPHA &alpha, const MA &A, MB &&B); | | | *---------------------------------------------------------------------------* [c:@N@flens@N@blas@FT@>3#T#T#Taxpy#$@N@cxxblas@E@Tr] [anspose#&1t0.0#&1t0.1#&t0.2#templatetypenameALPHA,] [typenameMA,typenameMBtypenameRestrictToIsGeMatrixM] [AvalueandIsGeMatrixMBvalue,voidType ] trans `(input)` + Specifiy the operation, i.e. NoTrans $B \leftarrow B + \alpha\, A$ Trans $B \leftarrow B + \alpha\, A^T$ ConjTrans $B \leftarrow B + \alpha\, A^H$ alpha `(input) real scalar` + Scaling factor for the values in $x$. A `(input) real or complex valued GeMatrix` + Matrix $A$. B `(input/output) real or complex valued GeMatrix` + Matrix $B$. ################################################################################ # # The following CODEREFs are automatically created stubs. # ################################################################################ *--[CODEREF]----------------------------------------------------------------* | | | template | | typename RestrictTo::value | | && IsTinyVector::value, | | void>::Type | | axpy(const ALPHA &alpha, const VX &x, VY &&y); | | | *---------------------------------------------------------------------------* [c:@N@flens@N@blas@FT@>3#T#T#Taxpy#&1t0.0#&1t0.1#&t] [0.2#templatetypenameALPHA,typenameVX,typenameVYtyp] [enameRestrictToIsTinyVectorVXvalueandIsTinyVectorV] [Yvalue,voidType ] Defined in namespace `flens::blas`. Function `axpy` with 3 template parameters. *--[CODEREF]----------------------------------------------------------------* | | | template | | typename RestrictTo::value | | && IsGbMatrix::value, | | void>::Type | | axpy(Transpose trans, const ALPHA &alpha, const MA &A, MB &&B); | | | *---------------------------------------------------------------------------* [c:@N@flens@N@blas@FT@>3#T#T#Taxpy#$@N@cxxblas@E@Tr] [anspose#&1t0.0#&1t0.1#&t0.2#templatetypenameALPHA,] [typenameMA,typenameMBtypenameRestrictToIsGbMatrixM] [AvalueandIsGbMatrixMBvalue,voidType ] Defined in namespace `flens::blas`. Function `axpy` with 3 template parameters. *--[CODEREF]----------------------------------------------------------------* | | | template | | typename RestrictTo::value | | && IsGeTinyMatrix::value, | | void>::Type | | axpy(Transpose trans, const ALPHA &alpha, const MA &A, MB &&B); | | | *---------------------------------------------------------------------------* [c:@N@flens@N@blas@FT@>3#T#T#Taxpy#$@N@cxxblas@E@Tr] [anspose#&1t0.0#&1t0.1#&t0.2#templatetypenameALPHA,] [typenameMA,typenameMBtypenameRestrictToIsGeTinyMat] [rixMAvalueandIsGeTinyMatrixMBvalue,voidType ] Defined in namespace `flens::blas`. Function `axpy` with 3 template parameters. *--[CODEREF]----------------------------------------------------------------* | | | template | | typename RestrictTo::value | | && IsHbMatrix::value, | | void>::Type | | axpy(Transpose trans, const ALPHA &alpha, const MA &A, MB &&B); | | | *---------------------------------------------------------------------------* [c:@N@flens@N@blas@FT@>3#T#T#Taxpy#$@N@cxxblas@E@Tr] [anspose#&1t0.0#&1t0.1#&t0.2#templatetypenameALPHA,] [typenameMA,typenameMBtypenameRestrictToIsHbMatrixM] [AvalueandIsHbMatrixMBvalue,voidType ] Defined in namespace `flens::blas`. Function `axpy` with 3 template parameters. *--[CODEREF]----------------------------------------------------------------* | | | template | | typename RestrictTo::value | | && IsHpMatrix::value, | | void>::Type | | axpy(Transpose trans, const ALPHA &alpha, const MA &A, MB &&B); | | | *---------------------------------------------------------------------------* [c:@N@flens@N@blas@FT@>3#T#T#Taxpy#$@N@cxxblas@E@Tr] [anspose#&1t0.0#&1t0.1#&t0.2#templatetypenameALPHA,] [typenameMA,typenameMBtypenameRestrictToIsHpMatrixM] [AvalueandIsHpMatrixMBvalue,voidType ] Defined in namespace `flens::blas`. Function `axpy` with 3 template parameters. *--[CODEREF]----------------------------------------------------------------* | | | template | | typename RestrictTo::value | | && IsSbMatrix::value, | | void>::Type | | axpy(Transpose trans, const ALPHA &alpha, const MA &A, MB &&B); | | | *---------------------------------------------------------------------------* [c:@N@flens@N@blas@FT@>3#T#T#Taxpy#$@N@cxxblas@E@Tr] [anspose#&1t0.0#&1t0.1#&t0.2#templatetypenameALPHA,] [typenameMA,typenameMBtypenameRestrictToIsSbMatrixM] [AvalueandIsSbMatrixMBvalue,voidType ] Defined in namespace `flens::blas`. Function `axpy` with 3 template parameters. *--[CODEREF]----------------------------------------------------------------* | | | template | | typename RestrictTo::value | | && IsSpMatrix::value, | | void>::Type | | axpy(Transpose trans, const ALPHA &alpha, const MA &A, MB &&B); | | | *---------------------------------------------------------------------------* [c:@N@flens@N@blas@FT@>3#T#T#Taxpy#$@N@cxxblas@E@Tr] [anspose#&1t0.0#&1t0.1#&t0.2#templatetypenameALPHA,] [typenameMA,typenameMBtypenameRestrictToIsSpMatrixM] [AvalueandIsSpMatrixMBvalue,voidType ] Defined in namespace `flens::blas`. Function `axpy` with 3 template parameters. *--[CODEREF]----------------------------------------------------------------* | | | template | | typename RestrictTo::value | | && IsTbMatrix::value, | | void>::Type | | axpy(Transpose trans, const ALPHA &alpha, const MA &A, MB &&B); | | | *---------------------------------------------------------------------------* [c:@N@flens@N@blas@FT@>3#T#T#Taxpy#$@N@cxxblas@E@Tr] [anspose#&1t0.0#&1t0.1#&t0.2#templatetypenameALPHA,] [typenameMA,typenameMBtypenameRestrictToIsTbMatrixM] [AvalueandIsTbMatrixMBvalue,voidType ] Defined in namespace `flens::blas`. Function `axpy` with 3 template parameters. *--[CODEREF]----------------------------------------------------------------* | | | template | | typename RestrictTo::value | | && IsTpMatrix::value, | | void>::Type | | axpy(Transpose trans, const ALPHA &alpha, const MA &A, MB &&B); | | | *---------------------------------------------------------------------------* [c:@N@flens@N@blas@FT@>3#T#T#Taxpy#$@N@cxxblas@E@Tr] [anspose#&1t0.0#&1t0.1#&t0.2#templatetypenameALPHA,] [typenameMA,typenameMBtypenameRestrictToIsTpMatrixM] [AvalueandIsTpMatrixMBvalue,voidType ] Defined in namespace `flens::blas`. Function `axpy` with 3 template parameters.