Class B2MacroBlock


public class B2MacroBlock extends MacroBlock
This class implements the Macro Blocks of the B2 Block of the B matrix. The Factory Methods newMicroBlock and subBlockCopy are implemented to return the correct block type in the parallel hierarchy. Type 1 Micro Blocks are selected for lower class linear systems
Author:
Jack Bradshaw
  • Constructor Details

  • Method Details

    • subBlockCopy

      protected MacroBlock subBlockCopy(int current_class)
      Description copied from class: MacroBlock
      Factory Method for sub-block creation This method is to be overridden by subclasses to instantiate a copy of the current block (of the correct type) For instance, a copy of an XMacroBlocks needs to be a XMacroBlock
      Specified by:
      subBlockCopy in class MacroBlock
      Parameters:
      current_class - The class for which the copy is created
      Returns:
      A shallow copy of calling block, for the current_class. Without micro blocks.
    • newMicroBlock

      protected MicroBlock newMicroBlock(Position block_position, int h)
      Description copied from class: MacroBlock
      Factory Method for Micro Blocks To be overridden by subclasses in order to create the appropriate subclass of MacroBlock in the parallel hierarchy. i.e. XMacroBlocks are composed of XMicroBlocks
      Specified by:
      newMicroBlock in class MacroBlock
      Parameters:
      block_position - Starting position for the new macro block
      h - Number of non-zeros associated with the macro block
    • update

      public void update(int current_class_population)