libflame  revision_anchor
Functions
FLA_Apply_G_internal.c File Reference

(r)

Functions

FLA_Error FLA_Apply_G_internal (FLA_Side side, FLA_Direct direct, FLA_Obj G, FLA_Obj A)

Function Documentation

References FLA_Apply_G_lf_opt_var1(), and FLA_Apply_G_rf_opt_var1().

Referenced by FLA_Apply_G().

{
    FLA_Error r_val = FLA_SUCCESS;

    if          ( side == FLA_LEFT )
    {
        if      ( direct == FLA_FORWARD )
        {
            r_val = FLA_Apply_G_lf_opt_var1( G, A );
        }
        else if ( direct == FLA_BACKWARD )
        {
            FLA_Check_error_code( FLA_NOT_YET_IMPLEMENTED );
            //r_val = FLA_Apply_G_lb_opt_var1( G, A );
        }
    }
    else if     ( side == FLA_RIGHT )
    {
        if      ( direct == FLA_FORWARD )
        {
            r_val = FLA_Apply_G_rf_opt_var1( G, A );
        }
        else if ( direct == FLA_BACKWARD )
        {
            FLA_Check_error_code( FLA_NOT_YET_IMPLEMENTED );
            //r_val = FLA_Apply_G_rb_opt_var1( G, A );
        }
    }

    return r_val;
}