FLA_QR_UT_UD_internal_check.c File Reference

(r)


Functions

FLA_Error FLA_QR_UT_UD_internal_check (FLA_Obj B, FLA_Obj D, FLA_Obj T, fla_qrutud_t *cntl)

Function Documentation

FLA_Error FLA_QR_UT_UD_internal_check ( FLA_Obj  B,
FLA_Obj  D,
FLA_Obj  T,
fla_qrutud_t cntl 
)

References FLA_Check_identical_object_elemtype(), FLA_Check_matrix_matrix_dims(), and FLA_Check_null_pointer().

Referenced by FLA_QR_UT_UD_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( B, D );
00045     FLA_Check_error_code( e_val );
00046 
00047     e_val = FLA_Check_identical_object_elemtype( B, T );
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     e_val = FLA_Check_matrix_matrix_dims( FLA_NO_TRANSPOSE, FLA_NO_TRANSPOSE, D, B, D );
00054     FLA_Check_error_code( e_val );
00055 
00056     e_val = FLA_Check_matrix_matrix_dims( FLA_NO_TRANSPOSE, FLA_NO_TRANSPOSE, T, B, T );
00057     FLA_Check_error_code( e_val );
00058 
00059     return FLA_SUCCESS;
00060 }


Generated on Mon Jul 6 05:45:51 2009 for libflame by  doxygen 1.5.9