Logo Search packages:      
Sourcecode: dsdp version File versions  Download package

int SDPConeSetXMat ( SDPCone  sdpcone,
int  blockj,
int  n 
)

Create X matrix.

Parameters:
sdpcone SDP cone
blockj block number j from 0 to nblocks
n dimension of the matrix

Definition at line 247 of file dsdpadddata.c.

References SDPCone_C::blk, DSDPMakeVMat(), SDPConeClearVMatrix(), SDPConeGetStorageFormat(), and SDPblk::T.

                                                     { 
  int info;
  char UPLQ;
  DSDPVMat T;

  DSDPFunctionBegin;
  SDPConeValid(sdpcone);
  info=SDPConeClearVMatrix(sdpcone,blockj,n);DSDPCHKERR(info);
  DSDPLogInfo(0,10,"Create block X Mat:  Block: %d, size: %d.\n",blockj,n);
  info=SDPConeGetStorageFormat(sdpcone,blockj,&UPLQ); DSDPCHKERR(info);
  info=DSDPMakeVMat(UPLQ,n,&T);DSDPCHKERR(info);
  sdpcone->blk[blockj].T=T;
  DSDPFunctionReturn(0);
}


Generated by  Doxygen 1.6.0   Back to index