FLA_Ttmm.c File Reference

(r)


Functions

FLA_Error FLA_Ttmm (FLA_Uplo uplo, FLA_Obj A)
void FLA_F2C() fla_ttmm_f (F_INT *uplo, F_INT *A, F_INT *IERROR)

Variables

fla_ttmm_tfla_ttmm_cntl_lapack
fla_ttmm_tfla_ttmm_cntl
fla_blocksize_tfla_ttmm_var1_bsize

Function Documentation

FLA_Error FLA_Ttmm ( FLA_Uplo  uplo,
FLA_Obj  A 
)

References FLA_Blocksize_extract(), FLA_Check_error_level(), FLA_Obj_datatype(), FLA_Obj_length(), FLA_Ttmm_check(), and FLA_Ttmm_internal().

Referenced by fla_ttmm_f().

00040 {
00041   FLA_Datatype datatype;
00042   int          m_A, r_val = 0;
00043   int          FLA_TTMM_VAR1_BLOCKSIZE;
00044 
00045   // Check parameters.
00046   if ( FLA_Check_error_level() >= FLA_MIN_ERROR_CHECKING )
00047     FLA_Ttmm_check( uplo, A );
00048 
00049   // Determine the datatype of the operation.
00050   datatype = FLA_Obj_datatype( A );
00051 
00052   // Extract the appropriate blocksize for the given datatype.
00053   FLA_TTMM_VAR1_BLOCKSIZE = FLA_Blocksize_extract( datatype, fla_ttmm_var1_bsize );
00054 
00055   // Determine the dimension of A.
00056   m_A = FLA_Obj_length( A );
00057 
00058   // Invoke FLA_Ttmm_internal() with the appropriate control tree.
00059   if      ( m_A <= FLA_TTMM_VAR1_BLOCKSIZE )
00060   {
00061     r_val = FLA_Ttmm_internal( uplo, A, fla_ttmm_cntl_lapack );
00062   }
00063   else if ( FLA_TTMM_VAR1_BLOCKSIZE < m_A )
00064   {
00065     r_val = FLA_Ttmm_internal( uplo, A, fla_ttmm_cntl );
00066   }
00067 
00068   return r_val;
00069 }

void FLA_F2C() fla_ttmm_f ( F_INT *  uplo,
F_INT *  A,
F_INT *  IERROR 
)

References FLA_Ttmm().

00073 {
00074   *IERROR = FLA_Ttmm( *( ( FLA_Uplo * ) uplo ), 
00075                       *( ( FLA_Obj  * ) A    ) );
00076 }


Variable Documentation


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