libflame  revision_anchor
Functions
FLA_Apply_G_mx2_check.c File Reference

(r)

Functions

FLA_Error FLA_Apply_G_mx2_check (FLA_Obj gamma, FLA_Obj sigma, FLA_Obj a1, FLA_Obj a2)

Function Documentation

FLA_Error FLA_Apply_G_mx2_check ( FLA_Obj  gamma,
FLA_Obj  sigma,
FLA_Obj  a1,
FLA_Obj  a2 
)

References FLA_Check_equal_vector_dims(), FLA_Check_identical_object_datatype(), FLA_Check_identical_object_precision(), FLA_Check_if_scalar(), FLA_Check_if_vector(), FLA_Check_nonconstant_object(), and FLA_Check_real_object().

{
  FLA_Error e_val;

  e_val = FLA_Check_nonconstant_object( gamma );
  FLA_Check_error_code( e_val );

  e_val = FLA_Check_real_object( gamma );
  FLA_Check_error_code( e_val );

  e_val = FLA_Check_identical_object_datatype( gamma, sigma );
  FLA_Check_error_code( e_val );

  e_val = FLA_Check_identical_object_datatype( a1, a2 );
  FLA_Check_error_code( e_val );

  e_val = FLA_Check_identical_object_precision( gamma, a1 );
  FLA_Check_error_code( e_val );

  e_val = FLA_Check_if_scalar( gamma );
  FLA_Check_error_code( e_val );

  e_val = FLA_Check_if_scalar( sigma );
  FLA_Check_error_code( e_val );

  e_val = FLA_Check_if_vector( a1 );
  FLA_Check_error_code( e_val );

  e_val = FLA_Check_if_vector( a2 );
  FLA_Check_error_code( e_val );

  e_val = FLA_Check_equal_vector_dims( a1, a2 );
  FLA_Check_error_code( e_val );

  return FLA_SUCCESS;
}