libflame  revision_anchor
Functions
FLA_Apply_Q_UT_create_workspace.c File Reference

(r)

Functions

FLA_Error FLA_Apply_Q_UT_create_workspace (FLA_Obj T, FLA_Obj B, FLA_Obj *W)

Function Documentation

References FLA_Obj_create(), FLA_Obj_datatype(), FLA_Obj_length(), and FLA_Obj_width().

Referenced by FLA_LQ_UT_form_Q(), FLA_LQ_UT_solve(), FLA_QR_UT_form_Q(), and FLA_QR_UT_solve().

{
    FLA_Datatype datatype;
    dim_t        m_W, n_W;

    datatype = FLA_Obj_datatype( T );
    m_W      = FLA_Obj_length( T );
    n_W      = FLA_Obj_width( B );

    FLA_Obj_create( datatype, m_W, n_W, 0, 0, W );

    return FLA_SUCCESS;
}