openmdao/core/total_jac.py
def _print_derivatives(self):
        """
        Print out the derivatives when debug_print is True.
        """
        if self.return_format == 'dict':
            J = self.J_dict
            for of in self.of:
                for wrt in self.wrt:
                    pprint.pprint({(of, wrt): J[of][wrt]})
        else:
            J = self.J
            for i, of in enumerate(self.of):
                out_slice = self.of_meta[of][0]
                for j, wrt in enumerate(self.wrt):
                    pprint.pprint({(of, wrt): J[out_slice, self.wrt_meta[wrt][0]]})

        print('')
        sys.stdout.flush()

        Print out the derivatives when debug_print is True.
        
Print out the derivatives when debug_print is True.
Print out the derivatives when debug_print is True .
def _print_derivatives(self):
        if self.return_format == 'dict':
            J = self.J_dict
            for of in self.of:
                for wrt in self.wrt:
                    pprint.pprint({(of, wrt): J[of][wrt]})
        else:
            J = self.J
            for i, of in enumerate(self.of):
                out_slice = self.of_meta[of][0]
                for j, wrt in enumerate(self.wrt):
                    pprint.pprint({(of, wrt): J[out_slice, self.wrt_meta[wrt][0]]})
        print('')
        sys.stdout.flush()
def _print_derivatives ( self ) : if self . return_format == 'dict' : J = self . J_dict for of in self . of : for wrt in self . wrt : pprint . pprint ( { ( of , wrt ) : J [ of ] [ wrt ] } ) else : J = self . J for i , of in enumerate ( self . of ) : out_slice = self . of_meta [ of ] [ 0 ] for j , wrt in enumerate ( self . wrt ) : pprint . pprint ( { ( of , wrt ) : J [ out_slice , self . wrt_meta [ wrt ] [ 0 ] ] } ) print ( '' ) sys . stdout . flush ( )
Print out the derivatives when debug_print is True.
Print out the derivatives when debug_print is True .
"""
        Print out the derivatives when debug_print is True.
        """
self