|
| 1 | +/** |
| 2 | +* @license Apache-2.0 |
| 3 | +* |
| 4 | +* Copyright (c) 2026 The Stdlib Authors. |
| 5 | +* |
| 6 | +* Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | +* you may not use this file except in compliance with the License. |
| 8 | +* You may obtain a copy of the License at |
| 9 | +* |
| 10 | +* http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +* |
| 12 | +* Unless required by applicable law or agreed to in writing, software |
| 13 | +* distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | +* See the License for the specific language governing permissions and |
| 16 | +* limitations under the License. |
| 17 | +*/ |
| 18 | + |
| 19 | +// TypeScript Version: 4.1 |
| 20 | + |
| 21 | +/// <reference types="@stdlib/types"/> |
| 22 | + |
| 23 | +import { Complex128Array } from '@stdlib/types/array'; |
| 24 | +import { Layout, TransposeOperation } from '@stdlib/types/blas'; |
| 25 | +import { Complex128 } from '@stdlib/types/complex'; |
| 26 | + |
| 27 | +/** |
| 28 | +* Interface describing `zgbmv`. |
| 29 | +*/ |
| 30 | +interface Routine { |
| 31 | + /** |
| 32 | + * Performs one of the matrix-vector operations `y = α*A*x + β*y` or `y = α*A^T*x + β*y` or `y = α*A^H*x + β*y`, where `α` and `β` are scalars, `x` and `y` are vectors, and `A` is an `M` by `N` band matrix with `KL` sub-diagonals and `KU` super-diagonals. |
| 33 | + * |
| 34 | + * @param order - storage layout |
| 35 | + * @param trans - specifies whether `A` should be transposed, conjugate-transposed, or not transposed |
| 36 | + * @param M - number of rows in the matrix `A` |
| 37 | + * @param N - number of columns in the matrix `A` |
| 38 | + * @param KL - number of sub-diagonals of matrix `A` |
| 39 | + * @param KU - number of super-diagonals of matrix `A` |
| 40 | + * @param alpha - scalar constant |
| 41 | + * @param A - input matrix (compact band storage) |
| 42 | + * @param LDA - stride of the first dimension of `A` |
| 43 | + * @param x - first input vector |
| 44 | + * @param strideX - `x` stride length |
| 45 | + * @param beta - scalar constant |
| 46 | + * @param y - second input vector |
| 47 | + * @param strideY - `y` stride length |
| 48 | + * @returns `y` |
| 49 | + * |
| 50 | + * @example |
| 51 | + * var Complex128Array = require( '@stdlib/array/complex128' ); |
| 52 | + * var Complex128 = require( '@stdlib/complex/float64/ctor' ); |
| 53 | + * |
| 54 | + * var A = new Complex128Array( [ 0.0, 0.0, 1.0, 1.0, 3.0, 3.0, 2.0, 2.0, 4.0, 4.0, 6.0, 6.0, 5.0, 5.0, 7.0, 7.0, 0.0, 0.0 ] ); |
| 55 | + * var x = new Complex128Array( [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ] ); |
| 56 | + * var y = new Complex128Array( [ 3.0, 3.0, 2.0, 2.0, 1.0, 1.0 ] ); |
| 57 | + * var alpha = new Complex128( 0.5, 0.5 ); |
| 58 | + * var beta = new Complex128( 0.5, -0.5 ); |
| 59 | + * |
| 60 | + * zgbmv( 'row-major', 'no-transpose', 3, 3, 1, 1, alpha, A, 3, x, 1, beta, y, 1 ); |
| 61 | + * // y => <Complex128Array>[ -4.0, 7.0, -26.0, 28.0, -30.0, 31.0 ] |
| 62 | + */ |
| 63 | + ( order: Layout, trans: TransposeOperation, M: number, N: number, KL: number, KU: number, alpha: Complex128, A: Complex128Array, LDA: number, x: Complex128Array, strideX: number, beta: Complex128, y: Complex128Array, strideY: number ): Complex128Array; |
| 64 | + |
| 65 | + /** |
| 66 | + * Performs one of the matrix-vector operations `y = α*A*x + β*y` or `y = α*A^T*x + β*y` or `y = α*A^H*x + β*y`, using alternative indexing semantics and where `α` and `β` are scalars, `x` and `y` are vectors, and `A` is an `M` by `N` band matrix with `KL` sub-diagonals and `KU` super-diagonals. |
| 67 | + * |
| 68 | + * @param trans - specifies whether `A` should be transposed, conjugate-transposed, or not transposed |
| 69 | + * @param M - number of rows in the matrix `A` |
| 70 | + * @param N - number of columns in the matrix `A` |
| 71 | + * @param KL - number of sub-diagonals of matrix `A` |
| 72 | + * @param KU - number of super-diagonals of matrix `A` |
| 73 | + * @param alpha - scalar constant |
| 74 | + * @param A - input band matrix (compact band storage) |
| 75 | + * @param strideA1 - stride of the first dimension of `A` |
| 76 | + * @param strideA2 - stride of the second dimension of `A` |
| 77 | + * @param offsetA - starting index for `A` |
| 78 | + * @param x - first input vector |
| 79 | + * @param strideX - `x` stride length |
| 80 | + * @param offsetX - starting index for `x` |
| 81 | + * @param beta - scalar constant |
| 82 | + * @param y - second input vector |
| 83 | + * @param strideY - `y` stride length |
| 84 | + * @param offsetY - starting index for `y` |
| 85 | + * @returns `y` |
| 86 | + * |
| 87 | + * @example |
| 88 | + * var Complex128Array = require( '@stdlib/array/complex128' ); |
| 89 | + * var Complex128 = require( '@stdlib/complex/float64/ctor' ); |
| 90 | + * |
| 91 | + * var A = new Complex128Array( [ 0.0, 0.0, 1.0, 1.0, 3.0, 3.0, 2.0, 2.0, 4.0, 4.0, 6.0, 6.0, 5.0, 5.0, 7.0, 7.0, 0.0, 0.0 ] ); |
| 92 | + * var x = new Complex128Array( [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ] ); |
| 93 | + * var y = new Complex128Array( [ 3.0, 3.0, 2.0, 2.0, 1.0, 1.0 ] ); |
| 94 | + * var alpha = new Complex128( 0.5, 0.5 ); |
| 95 | + * var beta = new Complex128( 0.5, -0.5 ); |
| 96 | + * |
| 97 | + * zgbmv.ndarray( 'no-transpose', 3, 3, 1, 1, alpha, A, 3, 1, 0, x, 1, 0, beta, y, 1, 0 ); |
| 98 | + * // y => <Complex128Array>[ -4.0, 7.0, -26.0, 28.0, -30.0, 31.0 ] |
| 99 | + */ |
| 100 | + ndarray( trans: TransposeOperation, M: number, N: number, KL: number, KU: number, alpha: Complex128, A: Complex128Array, strideA1: number, strideA2: number, offsetA: number, x: Complex128Array, strideX: number, offsetX: number, beta: Complex128, y: Complex128Array, strideY: number, offsetY: number ): Complex128Array; |
| 101 | +} |
| 102 | + |
| 103 | +/** |
| 104 | +* Performs one of the matrix-vector operations `y = α*A*x + β*y` or `y = α*A^T*x + β*y` or `y = α*A^H*x + β*y`, where `α` and `β` are scalars, `x` and `y` are vectors, and `A` is an `M` by `N` band matrix with `KL` sub-diagonals and `KU` super-diagonals. |
| 105 | +* |
| 106 | +* @param order - storage layout |
| 107 | +* @param trans - specifies whether `A` should be transposed, conjugate-transposed, or not transposed |
| 108 | +* @param M - number of rows in the matrix `A` |
| 109 | +* @param N - number of columns in the matrix `A` |
| 110 | +* @param KL - number of sub-diagonals of matrix `A` |
| 111 | +* @param KU - number of super-diagonals of matrix `A` |
| 112 | +* @param alpha - complex scalar constant |
| 113 | +* @param A - input complex matrix (compact band storage) |
| 114 | +* @param LDA - stride of the first dimension of `A` |
| 115 | +* @param x - first input complex vector |
| 116 | +* @param strideX - `x` stride length |
| 117 | +* @param beta - complex scalar constant |
| 118 | +* @param y - second input complex vector |
| 119 | +* @param strideY - `y` stride length |
| 120 | +* @returns `y` |
| 121 | +* |
| 122 | +* @example |
| 123 | +* var Complex128Array = require( '@stdlib/array/complex128' ); |
| 124 | +* var Complex128 = require( '@stdlib/complex/float64/ctor' ); |
| 125 | +* |
| 126 | +* var A = new Complex128Array( [ 0.0, 0.0, 1.0, 1.0, 3.0, 3.0, 2.0, 2.0, 4.0, 4.0, 6.0, 6.0, 5.0, 5.0, 7.0, 7.0, 0.0, 0.0 ] ); |
| 127 | +* var x = new Complex128Array( [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ] ); |
| 128 | +* var y = new Complex128Array( [ 3.0, 3.0, 2.0, 2.0, 1.0, 1.0 ] ); |
| 129 | +* var alpha = new Complex128( 0.5, 0.5 ); |
| 130 | +* var beta = new Complex128( 0.5, -0.5 ); |
| 131 | +* |
| 132 | +* zgbmv( 'row-major', 'no-transpose', 3, 3, 1, 1, alpha, A, 3, x, 1, beta, y, 1 ); |
| 133 | +* // y => <Complex128Array>[ -4.0, 7.0, -26.0, 28.0, -30.0, 31.0 ] |
| 134 | +* |
| 135 | +* @example |
| 136 | +* var Complex128Array = require( '@stdlib/array/complex128' ); |
| 137 | +* var Complex128 = require( '@stdlib/complex/float64/ctor' ); |
| 138 | +* |
| 139 | +* var A = new Complex128Array( [ 0.0, 0.0, 1.0, 1.0, 3.0, 3.0, 2.0, 2.0, 4.0, 4.0, 6.0, 6.0, 5.0, 5.0, 7.0, 7.0, 0.0, 0.0 ] ); |
| 140 | +* var x = new Complex128Array( [ 1.0, 1.0, 2.0, 2.0, 3.0, 3.0 ] ); |
| 141 | +* var y = new Complex128Array( [ 3.0, 3.0, 2.0, 2.0, 1.0, 1.0 ] ); |
| 142 | +* var alpha = new Complex128( 0.5, 0.5 ); |
| 143 | +* var beta = new Complex128( 0.5, -0.5 ); |
| 144 | +* |
| 145 | +* zgbmv.ndarray( 'no-transpose', 3, 3, 1, 1, alpha, A, 3, 1, 0, x, 1, 0, beta, y, 1, 0 ); |
| 146 | +* // y => <Complex128Array>[ -4.0, 7.0, -26.0, 28.0, -30.0, 31.0 ] |
| 147 | +*/ |
| 148 | +declare var zgbmv: Routine; |
| 149 | + |
| 150 | + |
| 151 | +// EXPORTS // |
| 152 | + |
| 153 | +export = zgbmv; |
0 commit comments