Packages

o

scotty.simulator.math

MatrixWrapper

object MatrixWrapper

The Matrix object contains pure matrix methods from linear algebra.

Complex numbers are represented with two consecutive Doubles. All matrix data is represented in a single array of arrays. Matricies for most methods have to be square and unitary.

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

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. def areEqual(m1: Matrix, m2: Matrix): Boolean

    Checks if two square matricies of the same dimension are the same.

    Checks if two square matricies of the same dimension are the same.

    m1

    Array of arrays of doubles.

    m2

    Array of arrays of doubles.

    returns

    Boolean.

  5. def areSameDimension(matrix: Matrix, vector: Vector): Boolean

    Checks if a matrix and a vector are of the same dimension.

    Checks if a matrix and a vector are of the same dimension.

    matrix

    Array of arrays of doubles.

    vector

    Array of doubles.

    returns

    Boolean.

  6. def areSameDimension(m1: Matrix, m2: Matrix): Boolean

    Checks if two matricies are of the same dimension.

    Checks if two matricies are of the same dimension.

    m1

    Array of arrays of doubles.

    m2

    Array of arrays of doubles.

    returns

    Boolean.

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  9. def conjugateTranspose(matrix: Matrix): Matrix

    Returns the complex conjugate transpose of a square matrix.

    Returns the complex conjugate transpose of a square matrix. This method is not optimized.

    matrix

    Array of arrays of doubles.

    returns

    Array of doubles.

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def identity(dimension: Int): Matrix

    Returns an identity matrix of a specific dimension.

    Returns an identity matrix of a specific dimension.

    dimension

    Integer dimension value.

    returns

    Array of arrays of doubles.

  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def isSquare(matrix: Matrix): Boolean

    Checks if the matrix is a square matrix.

    Checks if the matrix is a square matrix.

    matrix

    Array of arrays of doubles.

    returns

    Boolean.

  17. def isUnitary(matrix: Matrix): Boolean

    Checks if the matrix is a unitary matrix.

    Checks if the matrix is a unitary matrix.

    matrix

    Array of arrays of doubles.

    returns

    Boolean.

  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def product(matrix: Matrix, vector: Vector): Vector

    Returns the product of a square matrix and a vector of the same dimension.

    Returns the product of a square matrix and a vector of the same dimension. This method is not optimized.

    matrix

    Array of arrays of doubles.

    vector

    Array of doubles.

    returns

    Array of doubles.

  22. def product(m1: Matrix, m2: Matrix): Matrix

    Returns the product of two square matricies of the same dimension.

    Returns the product of two square matricies of the same dimension. This method is not optimized.

    m1

    Array of arrays of doubles.

    m2

    Array of arrays of doubles.

    returns

    Array of arrays of doubles.

  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped