コード例 #1
0
    def print_stack(self):
        """ Prints all matrices for this iteration
        """
        pc.print_next_iteration(self.i)

        pc.print_matrix("P1", self.i, "", self.P1)
        pc.print_matrix("P0", self.i, "", self.P0)
        
        pc.print_matrix("P1", self.i, "_roc", self.P1_roc)
        pc.print_matrix("P1", self.i, "_rpinv", self.P1_rpinv)
        pc.print_matrix("P1", self.i, "_dot", self.P1_dot)

        pc.print_matrix("A", self.i, "", self.A)
        pc.print_matrix("B", self.i, "", self.B)
        pc.print_matrix("B", self.i, "_loc", self.B_loc)
        pc.print_matrix("B", self.i, "_lpinv", self.B_lpinv)
        
        if self.is_special_case:
            pc.print_special_case_line()

            pc.print_matrix("B", self.i, "_tilde", self.B_tilde)
            pc.print_matrix("B", self.i, "_tilde_lpinv", self.B_tilde_lpinv)
            pc.print_matrix("P1", self.i, "_tilde_roc", self.P1_tilde_roc)
            pc.print_matrix("Z", self.i, "", self.Z)
            pc.print_matrix("Z", self.i, "_lpinv", self.Z_lpinv)
コード例 #2
0
    def print_hint_stack(self):
        """ Prints remaining matrices in case of manual mode
        """
        pc.print_next_iteration(self.i)
        pc.print_matrix("P1", self.i, "_dot", self.P1_dot)

        pc.print_matrix("A", self.i, "", self.A)
        pc.print_matrix("B", self.i, "", self.B)
        pc.print_matrix("B", self.i, "_loc", self.B_loc)
        pc.print_matrix("B", self.i, "_lpinv", self.B_lpinv)
        
        if self.is_special_case:
            pc.print_special_case_line()

            pc.print_matrix("B", self.i, "_tilde", self.B_tilde)
            pc.print_matrix("B", self.i, "_tilde_lpinv", self.B_tilde_lpinv)
            pc.print_matrix("P1", self.i, "_tilde_roc", self.P1_tilde_roc)
            pc.print_matrix("Z", self.i, "", self.Z)
            pc.print_matrix("Z", self.i, "_lpinv", self.Z_lpinv)