FLASH_Obj_set_to_scalar.c File Reference

(r)


Functions

FLA_Error FLASH_Obj_set_to_scalar (FLA_Obj alpha, FLA_Obj H)

Function Documentation

FLA_Error FLASH_Obj_set_to_scalar ( FLA_Obj  alpha,
FLA_Obj  H 
)

References FLA_Obj_free(), FLA_Obj_set_to_scalar(), 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     // Scale the flat matrix object by alpha.
00043     FLA_Obj_set_to_scalar( alpha, 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