returnValue ConstraintElement::setUnitForwardSeed( ){ BlockMatrix xSeed_( 1, 1 ); BlockMatrix xaSeed_( 1, 1 ); BlockMatrix pSeed_( 1, 1 ); BlockMatrix uSeed_( 1, 1 ); BlockMatrix wSeed_( 1, 1 ); xSeed_.setIdentity ( 0, 0, nx ); xaSeed_.setIdentity( 0, 0, na ); pSeed_.setIdentity ( 0, 0, np ); uSeed_.setIdentity ( 0, 0, nu ); wSeed_.setIdentity ( 0, 0, nw ); return setForwardSeed( &xSeed_, &xaSeed_, &pSeed_, &uSeed_, &wSeed_, 1 ); }
returnValue DynamicDiscretization::setUnitForwardSeed(){ BlockMatrix xSeed_( N, 1 ); BlockMatrix pSeed_( N, 1 ); BlockMatrix uSeed_( N, 1 ); BlockMatrix wSeed_( N, 1 ); int run1; for( run1 = 0; run1 < N; run1++ ){ xSeed_.setIdentity( run1, 0, nx ); pSeed_.setIdentity( run1, 0, np ); uSeed_.setIdentity( run1, 0, nu ); wSeed_.setIdentity( run1, 0, nw ); } return setForwardSeed( xSeed_, pSeed_, uSeed_, wSeed_ ); }