Class AIdentityDictionary

    • Constructor Detail

      • AIdentityDictionary

        public AIdentityDictionary​(int nRowCol)
        Create an identity matrix dictionary. It behaves as if allocated a Sparse Matrix block but exploits that the structure is known to have certain properties.
        Parameters:
        nRowCol - The number of rows and columns in this identity matrix.
      • AIdentityDictionary

        public AIdentityDictionary​(int nRowCol,
                                   boolean withEmpty)
    • Method Detail

      • withEmpty

        public boolean withEmpty()
      • getInMemorySize

        public static long getInMemorySize​(int numberColumns)
      • containsValue

        public final boolean containsValue​(double pattern)
        Description copied from interface: IDictionary
        Detect if the dictionary contains a specific value.
        Specified by:
        containsValue in interface IDictionary
        Overrides:
        containsValue in class ADictionary
        Parameters:
        pattern - The value to search for
        Returns:
        true if the value is contained else false.
      • productAllRowsToDouble

        public double[] productAllRowsToDouble​(int nCol)
        Description copied from interface: IDictionary
        Method to product all rows to a column vector.
        Specified by:
        productAllRowsToDouble in interface IDictionary
        Overrides:
        productAllRowsToDouble in class ADictionary
        Parameters:
        nCol - The number of columns in the ColGroup to know how to get the values from the dictionary.
        Returns:
        A row product