示例#1
0
void init(float A[][M][maxDegree+1], float Acopy[][M][maxDegree+1], float P[][N][maxDegree+1], 
		  float Pinv[][N][maxDegree+1], float Q[][M][maxDegree+1], float Qinv[][M][maxDegree+1]) {
	initializeA(A, Acopy);
	initializeP(P); // initialized to identity
	initializeP(Pinv);
	initializeQ(Q); // intiialized to identity
	initializeQ(Qinv);
}
示例#2
0
// initializes all of the matrices/vectors
void init(float A[][M][maxDegree+1], float Acopy[][M][maxDegree+1], float P[][N][maxDegree+1], 
		  float Pinv[][N][maxDegree+1], float Q[][M][maxDegree+1], float Qinv[][M][maxDegree+1], 
		  float PAtest[N][M][maxDegree+1], float diagTest[M][N][maxDegree+1], 
		  float PPinvTest[N][N][maxDegree+1], float QQinvTest[M][M][maxDegree+1]) {

	initializeA(A, Acopy);
	initializeP(P); // initialized to identity
	initializeP(Pinv);
	initializeQ(Q); // intiialized to identity
	initializeQ(Qinv);

	int m, n;
	for(n = 0; n < N; ++n) {
		for(m = 0; m < M; ++m) {
			setZero(diagTest[n][m]);
			setZero(PAtest[n][m]);
		}
	}

	initializeP(PPinvTest);
	initializeQ(QQinvTest);
}
示例#3
0
    bool JobShopData::initialize()
    {
        try
        {
            initializeT();
            initializeA();
            initializeP();
        }
        catch (...)
        {
            return false;
        }

        return true;
    }