FLASH_Random_matrix.c File Reference

(r)


Functions

FLA_Error FLASH_Random_matrix (FLA_Obj H)

Function Documentation

FLA_Error FLASH_Random_matrix ( FLA_Obj  H  ) 

References FLA_Obj_free(), FLA_Random_matrix(), FLASH_Obj_create_flat_copy_of_hier(), and FLASH_Obj_hierarchify().

00036 {
00037     FLA_Obj F;
00038 
00039     // Create a temporary flat copy of the hierarchical object.
00040     FLASH_Obj_create_flat_copy_of_hier( H, &F );
00041 
00042     // Randomize the flat matrix object.
00043     FLA_Random_matrix( F );
00044 
00045     // Copy the flat object's contents back to the hierarchical object.
00046     FLASH_Obj_hierarchify( F, H );
00047 
00048     // Free the temporary flat object.
00049     FLA_Obj_free( &F );
00050 
00051     return FLA_SUCCESS;
00052 }


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