Class AbstractRandomProjectionFamily.MatrixProjection

  • All Implemented Interfaces:
    RandomProjectionFamily.Projection
    Enclosing class:
    AbstractRandomProjectionFamily

    public static class AbstractRandomProjectionFamily.MatrixProjection
    extends java.lang.Object
    implements RandomProjectionFamily.Projection
    Class to project using a matrix multiplication. This class is optimized for dense vector multiplications. In other words, the row dimensionality is the output dimensionality, the column dimensionality is the input dimensionality. It is not thread safe because it uses an internal buffer to store a local copy of the vector.
    Author:
    Erich Schubert
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double[] buf
      Shared buffer to use during projections.
      (package private) double[][] matrix
      Projection matrix.
    • Constructor Summary

      Constructors 
      Constructor Description
      MatrixProjection​(double[][] matrix)
      Constructor.
    • Field Detail

      • matrix

        double[][] matrix
        Projection matrix.
      • buf

        private double[] buf
        Shared buffer to use during projections.
    • Constructor Detail

      • MatrixProjection

        public MatrixProjection​(double[][] matrix)
        Constructor.
        Parameters:
        matrix - Projection matrix ([output dim][input dim]).