libflame  revision_anchor
Functions
FLA_Apply_G.c File Reference

(r)

Functions

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

Function Documentation

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

References FLA_Apply_G_check(), FLA_Apply_G_internal(), FLA_Check_error_level(), and FLA_Obj_has_zero_dim().

{
  FLA_Error r_val;

  // Check parameters.
  if ( FLA_Check_error_level() >= FLA_MIN_ERROR_CHECKING )
    FLA_Apply_G_check( side, direct, G, A );

  if ( FLA_Obj_has_zero_dim( G ) ) return FLA_SUCCESS;

  // Invoke FLA_Apply_G_internal() to parse parameters.
  r_val = FLA_Apply_G_internal( side, direct, G, A );

  return r_val;
}