private void computeCCAVariant(ContextPCARepresentation _cpcaR2) {
		
		_cpcaR2.computeContextLRMatrices();	
		
		SVDTemplates svdTC;
		
			svdTC=new SVDTemplates(_opt,dim2);

		System.out.println("+++Generated CCA Matrices+++");
		
		if(_opt.typeofDecomp.equals("2viewWvsL")){
			
			computeCCA2(MatrixFormatConversion.createSparseMatrixCOLT(_cpcaR2.getWTLMatrix()),MatrixFormatConversion.createSparseMatrixCOLT(_cpcaR2.getLTWMatrix()),MatrixFormatConversion.createSparseMatrixCOLT(_cpcaR2.getLTLMatrix()),MatrixFormatConversion.createSparseMatrixCOLT(_cpcaR2.getWTWMatrix()),svdTC,_cpcaR2);
		}
		
		if(_opt.typeofDecomp.equals("2viewWvsR")){
			computeCCA2(MatrixFormatConversion.createSparseMatrixCOLT(_cpcaR2.getWTRMatrix()),MatrixFormatConversion.createSparseMatrixCOLT(_cpcaR2.getRTWMatrix()),MatrixFormatConversion.createSparseMatrixCOLT(_cpcaR2.getRTRMatrix()),MatrixFormatConversion.createSparseMatrixCOLT(_cpcaR2.getWTWMatrix()),svdTC,_cpcaR2);
		}
		
		if(_opt.typeofDecomp.equals("2viewWvsLR")){
			computeCCA2(MatrixFormatConversion.createSparseMatrixCOLT(_cpcaR2.getWTLRMatrix()), MatrixFormatConversion.createSparseMatrixCOLT(_cpcaR2.getLRTWMatrix()),MatrixFormatConversion.createSparseMatrixCOLT(_cpcaR2.getLRTLRMatrix()),MatrixFormatConversion.createSparseMatrixCOLT(_cpcaR2.getWTWMatrix()),svdTC,_cpcaR2);
		}
		
		//3 view is not implemented as yet.
		if(_opt.typeofDecomp.equals("3viewLvsWvsR") || _opt.typeofDecomp.equals("TwoStepLRvsW")){
		
			if(_opt.typeofDecomp.equals("TwoStepLRvsW"))
				computeCCATwoStepLRvsW(MatrixFormatConversion.createSparseMatrixCOLT(_cpcaR2.getLTRMatrix()),MatrixFormatConversion.createSparseMatrixCOLT(_cpcaR2.getRTLMatrix()),
						MatrixFormatConversion.createSparseMatrixCOLT(_cpcaR2.getLTLMatrix()),MatrixFormatConversion.createSparseMatrixCOLT(_cpcaR2.getRTRMatrix()),MatrixFormatConversion.createSparseMatrixCOLT(_cpcaR2.getWTWMatrix()),
						MatrixFormatConversion.createSparseMatrixCOLT(_cpcaR2.getWTLMatrix()),MatrixFormatConversion.createSparseMatrixCOLT(_cpcaR2.getWTRMatrix()),
						MatrixFormatConversion.createSparseMatrixCOLT(_cpcaR2.getLTWMatrix()),MatrixFormatConversion.createSparseMatrixCOLT(_cpcaR2.getRTWMatrix()),svdTC,_cpcaR2);
		}
	}