openmdao/components/ks_comp.py
def derivatives(self):
        """
        Compute elements of [dKS_gd, dKS_drho] based on previously computed values.

        Returns
        -------
        ndarray
            Derivative of KS function with respect to parameter values.
        """
        dsum_dg = self.rho * self.exponents
        dKS_dsum = 1.0 / (self.rho * self.summation)
        dKS_dg = dKS_dsum * dsum_dg

        dsum_drho = np.sum(self.g_diff * self.exponents)
        dKS_drho = dKS_dsum * dsum_drho

        return dKS_dg, dKS_drho

        Compute elements of [dKS_gd, dKS_drho] based on previously computed values.

        Returns
        -------
        ndarray
            Derivative of KS function with respect to parameter values.
        
Compute elements of [dKS_gd, dKS_drho] based on previously computed values.
Returns

ndarray
Derivative of KS function with respect to parameter values.
Compute elements of [ dKS_gd dKS_drho ] based on previously computed values . Returns ndarray Derivative of KS function with respect to parameter values .
def derivatives(self):
        dsum_dg = self.rho * self.exponents
        dKS_dsum = 1.0 / (self.rho * self.summation)
        dKS_dg = dKS_dsum * dsum_dg
        dsum_drho = np.sum(self.g_diff * self.exponents)
        dKS_drho = dKS_dsum * dsum_drho
        return dKS_dg, dKS_drho
def derivatives ( self ) : dsum_dg = self . rho * self . exponents dKS_dsum = 1.0 / ( self . rho * self . summation ) dKS_dg = dKS_dsum * dsum_dg dsum_drho = np . sum ( self . g_diff * self . exponents ) dKS_drho = dKS_dsum * dsum_drho return dKS_dg , dKS_drho
Compute elements of [dKS_gd, dKS_drho] based on previously computed values.
Compute elements of [ dKS_gd dKS_drho ] based on previously computed values .
"""
        Compute elements of [dKS_gd, dKS_drho] based on previously computed values.

        Returns
        -------
        ndarray
            Derivative of KS function with respect to parameter values.
        """
self