FLASH_Obj_shift_diagonal.c File Reference

(r)


Functions

FLA_Error FLASH_Obj_shift_diagonal (FLA_Obj sigma, FLA_Obj H)

Function Documentation

FLA_Error FLASH_Obj_shift_diagonal ( FLA_Obj  sigma,
FLA_Obj  H 
)

References FLA_Obj_free(), FLA_Obj_shift_diagonal(), 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     // Shift the diagonal of the flat matrix object by sigma.
00043     FLA_Obj_shift_diagonal( sigma, 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