vSgeadd(_:_:_:_:_:_:_:)
Adds two general matrices or their transposes.
Declaration
func vSgeadd(_ height: Int32, _ width: Int32, _ a: UnsafePointer<vFloat>, _ forma: CChar, _ b: UnsafePointer<vFloat>, _ formb: CChar, _ c: UnsafeMutablePointer<vFloat>)Parameters
- height:
Number of rows in the matrices to be added; must be a multiple of 4.
- width:
Number of columns in the matrices to be added; must be a multiple of 4.
- a:
A matrix with elements of type
float. Ifforma= ‘N’, the matrix itself is used in the calculation and it hasheightrows andwidthcolumns. Ifforma= ‘T’, the transpose is used andahaswidthrows andheightcolumns. - forma:
Selector with a value of’N’ or ‘T’.
- b:
A matrix with elements of type
float. Ifformb= ‘N’, the matrix itself is used in the calculation and it hasheightrows andwidthcolumns. Ifformb= ‘T’, the transpose is used andbhaswidthrows andheightcolumns. - formb:
Selector with a value of ‘N’ or ‘T’.
- c:
Destination matrix with
heightrows andwidthcolumns.
Discussion
Matrix a (or its transpose) is added to matrix b (or its transpose); the result is stored in mactrix c.