/* * @license Apache-2.0 * * Copyright (c) 2023 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // TypeScript Version: 4.1 /** * Inteface describing `srotg`. */ interface Routine { /** * Constructs a Givens plane rotation. * * @param a - rotational elimination parameter * @param b - rotational elimination parameter * @returns output array * * @example * var out = srotg( 0.0, 2.0 ); * // returns [ 2.0, 1.0, 0.0, 1.0 ] * * @example * var out = srotg( 6.0, -8.0 ); * // returns [ 10.0, ~-1.666, -0.6, 0.8 ] */ ( a: number, b: number ): Float32Array; /** * Constructs a Givens plane rotation. * * @param a - rotational elimination parameter * @param b - rotational elimination parameter * @param out - output array * @param stride - index increment * @param offset - starting index * @returns output array * * @example * var Float32Array = require( '@stdlib/array/float32' ); * * var out = new Float32Array( 4 ); * * var y = srotg.assign( 0.0, 2.0, out, 1, 0 ); * // returns [ 2.0, 1.0, 0.0, 1.0 ] * * var bool = ( y === out ); * // returns true */ assign( a: number, b: number, out: Float32Array, stride: number, offset: number ): Float32Array; } /** * Constructs a Givens plane rotation. * * @param a - rotational elimination parameter * @param b - rotational elimination parameter * @returns output array * * @example * var out = srotg( 0.0, 2.0 ); * // returns [ 2.0, 1.0, 0.0, 1.0 ] * * @example * var Float32Array = require( '@stdlib/array/float32' ); * * var out = new Float32Array( 4 ); * var y = srotg.assign( 0.0, 2.0, out, 1, 0 ); * // returns [ 2.0, 1.0, 0.0, 1.0 ] * * var bool = ( y === out ); * // returns true */ declare var srotg: Routine; // EXPORTS // export = srotg;