void Resistance::add_initial_dc() { if (!b_status) return; A_g(0, 0) += m_g; A_g(1, 1) += m_g; A_g(0, 1) -= m_g; A_g(1, 0) -= m_g; }
void VCCS::add_initial_dc() { if (!b_status) return; A_c( 0, 0 ) = 1.0; A_c( 0, 1 ) = -1.0; A_b( 3, 0 ) = 1.0; A_b( 2, 0 ) = -1.0; A_d( 0, 0 ) = -1.0 / m_g; #if 0 A_g( 2, 0 ) += m_g; A_g( 3, 0 ) -= m_g; A_g( 2, 1 ) -= m_g; A_g( 3, 1 ) += m_g; #endif }