Packages

object Givens

The Givens objects has methods for determining values 'c = cos(theta)' and 's = sin(theta)' for Givens rotation matrices as well as methods for applying Givens rotations.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Givens
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type CosSin = (Double, Double)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def givens(y: Double, z: Double): CosSin

    Create the values for a Givens 2-by-2 rotation matrix.

    Create the values for a Givens 2-by-2 rotation matrix. Given scalars 'y' and 'z', efficiently compute 'c = cos(theta)' and 's = sin(theta)' that can be used to form the rotation matrix.

    y

    the first scalar

    z

    the second scalar

    See also

    http://www.netlib.org/lapack/lawnspdf/lawn150.pdf | y z | | c s | = | hypot(y, z) 0 | | -s c | | c -s | | y | = | hypot(y, z) | | s c | | z | | 0 |

  10. def givensColUpdate(a: MatrixD, i: Int, k: Int, cs: CosSin): Unit

    Efficiently perform a Givens column update: a = a * g (i, k, theta).

    Efficiently perform a Givens column update: a = a * g (i, k, theta). The update just affects two columns. FIX

    a

    the matrix to update

    i

    the first column

    k

    the second column

    cs

    the (cosine, sine) of theta

    See also

    Section 5.1.9 in Matrix Computation.

  11. def givensRo(i: Int, k: Int, n: Int, cs: CosSin): MatrixD

    Return a Givens rotation matrix with angle 'theta = atan(s/c)'.

    Return a Givens rotation matrix with angle 'theta = atan(s/c)'. A matrix is post-multiplied by the Given matrix to clear element (i, k). The 2-by-2 rotation is embedded in an identity matrix of dimension 'n'.

    i

    the first diagonal position (i, i)

    k

    the second diagonal position (k, k)

    n

    the dimension of the resulting rotation matrix

    cs

    the (cosine, sine) of theta

  12. def givensRoT(i: Int, k: Int, n: Int, cs: CosSin): MatrixD

    Return a transposed Givens rotation matrix with angle 'theta = atan(s/c)'.

    Return a transposed Givens rotation matrix with angle 'theta = atan(s/c)'. A matrix is pre-multiplied by the Given matrix to clear element (k, i). The 2-by-2 rotation is embedded in an identity matrix of dimension 'n'.

    i

    the first diagonal position (i, i)

    k

    the second diagonal position (k, k)

    n

    the dimension of the resulting rotation matrix

    cs

    the (cosine, sine) of theta

  13. def givensRowUpdate(a: MatrixD, i: Int, k: Int, cs: CosSin): Unit

    Efficiently perform a Givens row update: 'a = g (i, k, theta).t * a'.

    Efficiently perform a Givens row update: 'a = g (i, k, theta).t * a'. The update just affects two row. FIX

    a

    the matrix to update

    i

    the first row

    k

    the second row

    cs

    the (cosine, sine) of theta

    See also

    Section 5.1.9 in Matrix Computation.

  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped