Functions | |
FLA_Error | FLA_Apply_Q_UT_internal_check (FLA_Side side, FLA_Trans trans, FLA_Store storev, FLA_Obj A, FLA_Obj T, FLA_Obj W, FLA_Obj B, fla_apqut_t *cntl) |
FLA_Error FLA_Apply_Q_UT_internal_check | ( | FLA_Side | side, | |
FLA_Trans | trans, | |||
FLA_Store | storev, | |||
FLA_Obj | A, | |||
FLA_Obj | T, | |||
FLA_Obj | W, | |||
FLA_Obj | B, | |||
fla_apqut_t * | cntl | |||
) |
References FLA_Check_identical_object_elemtype(), FLA_Check_matrix_matrix_dims(), and FLA_Check_null_pointer().
Referenced by FLA_Apply_Q_UT_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, T ); 00045 FLA_Check_error_code( e_val ); 00046 00047 e_val = FLA_Check_identical_object_elemtype( A, W ); 00048 FLA_Check_error_code( e_val ); 00049 00050 e_val = FLA_Check_identical_object_elemtype( A, B ); 00051 FLA_Check_error_code( e_val ); 00052 00053 // Verify conformality between all the objects. This check works regardless 00054 // of whether the element type is FLA_MATRIX or FLA_SCALAR because the 00055 // element length and width are used instead of scalar length and width. 00056 if ( side == FLA_LEFT ) 00057 { 00058 e_val = FLA_Check_matrix_matrix_dims( FLA_NO_TRANSPOSE, FLA_NO_TRANSPOSE, A, B, B ); 00059 FLA_Check_error_code( e_val ); 00060 } 00061 else 00062 { 00063 e_val = FLA_Check_matrix_matrix_dims( FLA_NO_TRANSPOSE, FLA_NO_TRANSPOSE, B, A, B ); 00064 FLA_Check_error_code( e_val ); 00065 } 00066 00067 return FLA_SUCCESS; 00068 }