Functions | |
FLA_Error | FLA_Hemm_internal_check (FLA_Side side, FLA_Uplo uplo, FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C, fla_hemm_t *cntl) |
FLA_Error FLA_Hemm_internal_check | ( | FLA_Side | side, | |
FLA_Uplo | uplo, | |||
FLA_Obj | alpha, | |||
FLA_Obj | A, | |||
FLA_Obj | B, | |||
FLA_Obj | beta, | |||
FLA_Obj | C, | |||
fla_hemm_t * | cntl | |||
) |
References FLA_Check_identical_object_elemtype(), FLA_Check_matrix_matrix_dims(), and FLA_Check_null_pointer().
Referenced by FLA_Hemm_internal().
00036 { 00037 FLA_Error e_val; 00038 00039 // Abort if the control structure is NULL. 00040 e_val = FLA_Check_null_pointer( ( void* ) cntl ); 00041 FLA_Check_error_code( e_val ); 00042 00043 // Verify that the object element types are identical. 00044 e_val = FLA_Check_identical_object_elemtype( A, B ); 00045 FLA_Check_error_code( e_val ); 00046 00047 e_val = FLA_Check_identical_object_elemtype( A, C ); 00048 FLA_Check_error_code( e_val ); 00049 00050 // Verify conformality between all the objects. This check works regardless 00051 // of whether the element type is FLA_MATRIX or FLA_SCALAR because the 00052 // element length and width are used instead of scalar length and width. 00053 if ( side == FLA_LEFT ) 00054 { 00055 e_val = FLA_Check_matrix_matrix_dims( FLA_NO_TRANSPOSE, FLA_NO_TRANSPOSE, A, B, C ); 00056 FLA_Check_error_code( e_val ); 00057 } 00058 else 00059 { 00060 e_val = FLA_Check_matrix_matrix_dims( FLA_NO_TRANSPOSE, FLA_NO_TRANSPOSE, B, A, C ); 00061 FLA_Check_error_code( e_val ); 00062 } 00063 00064 return FLA_SUCCESS; 00065 }