Package math.matrices

Class FastMatrixMult

java.lang.Object
math.matrices.FastMatrixMult

public class FastMatrixMult
extends java.lang.Object
Fast matrix multiplication between a 3x1 matrix and a 1x3 matrix.
  • Field Summary

    Fields
    Modifier and Type Field Description
    double xx
    Matrix entry at position (0, 0) (starting from top left).
    double xy
    Matrix entry at position (0, 1) (starting from top left).
    double xz
    Matrix entry at position (0, 2) (starting from top left).
    double yx
    Matrix entry at position (1, 0) (starting from top left).
    double yy
    Matrix entry at position (1, 1) (starting from top left).
    double yz
    Matrix entry at position (1, 2) (starting from top left).
    double zx
    Matrix entry at position (2, 0) (starting from top left).
    double zy
    Matrix entry at position (2, 1) (starting from top left).
    double zz
    Matrix entry at position (2, 2) (starting from top left).
  • Constructor Summary

    Constructors
    Constructor Description
    FastMatrixMult​(Triple first, Triple second)
    Multiply the two given vectors as if they were matrices.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • yx

      public final double yx
      Matrix entry at position (1, 0) (starting from top left).
    • zx

      public final double zx
      Matrix entry at position (2, 0) (starting from top left).
    • zy

      public final double zy
      Matrix entry at position (2, 1) (starting from top left).
    • xx

      public final double xx
      Matrix entry at position (0, 0) (starting from top left).
    • yy

      public final double yy
      Matrix entry at position (1, 1) (starting from top left).
    • zz

      public final double zz
      Matrix entry at position (2, 2) (starting from top left).
    • xy

      public final double xy
      Matrix entry at position (0, 1) (starting from top left).
    • yz

      public final double yz
      Matrix entry at position (1, 2) (starting from top left).
    • xz

      public final double xz
      Matrix entry at position (0, 2) (starting from top left).
  • Constructor Details

    • FastMatrixMult

      public FastMatrixMult​(Triple first, Triple second)
      Multiply the two given vectors as if they were matrices.
      Parameters:
      first - The first vector to multiply, as a 3x1 matrix.
      second - The second vector to multiply, as a 1x3 matrix.