Esempio n. 1
0
def drot(x, y, c, s):
    """
    This function applies a Givens rotation \M{(x', y') = (c x + s y, -s x + c y)}
    to the vectors x, y.
    """
    xn = array_typed_copy(x, Float)
    yn = array_typed_copy(y, Float)
    _gslwrap.gsl_blas_drot(xn, yn, c, s)
    return (xn, yn)
Esempio n. 2
0
def drot(x, y, c, s):
    """
    This function applies a Givens rotation \M{(x', y') = (c x + s y, -s x + c y)}
    to the vectors x, y.
    """
    xn = array_typed_copy(x, Float)
    yn = array_typed_copy(y, Float)
    _gslwrap.gsl_blas_drot(xn, yn, c, s)
    return (xn, yn)
Esempio n. 3
0
def drot_cr(x_CR, y_CR, c, s):
    """
    This function applies a Givens rotation \M{(x', y') = (c x + s y, -s x + c y)}
    to the vectors x, y.
    """
    _gslwrap.gsl_blas_drot(x_CR, y_CR, c, s)
Esempio n. 4
0
def drot_cr(x_CR, y_CR, c, s):
    """
    This function applies a Givens rotation \M{(x', y') = (c x + s y, -s x + c y)}
    to the vectors x, y.
    """
    _gslwrap.gsl_blas_drot(x_CR, y_CR, c, s)