import numpy as np
c=3
#meke A,B,AA,BB
A=np.array( [[ 0.69041153, 0.81024034, 0.40324572], [ 0.84312668, 0.81469053, 0.2784516 ]])
B = A
AA = np.array([3.])
BB = AA
print B
print BB
#change A,AA
T = np.array([[4.1408769,3.51354199,1.28993112,10.54030441,8.71299119,3.12873028],
[16.93973192,13.91244039,4.96752944,23.33915944,19.1118896,6.8063286 ],
[3.57357285,3.05017967,1.21938886,9.66329856,7.57999436, 3.19145479],
[15.75302426,12.10980906,5.16352073,21.84274997,16.63962376, 7.13558666],
[1.12173823,1.00284567,0.2924078, 3.14706322,2.56936657, 0.8027717 ],
[5.17238821,4.13588748,1.31313561,7.1977132, 5.70240838, 1.82349951]])
X, Y, Z = np.linalg.svd(T)
A[0,0:c]=Y[0:c]/np.sqrt(sum(Y[0:c]**2))
AA = np.array([5.])
#chech B,BB
print B
print BB
aW1wb3J0IG51bXB5IGFzIG5wCmM9MwoKI21la2UgQSxCLEFBLEJCCkE9bnAuYXJyYXkoIFtbIDAuNjkwNDExNTMsIDAuODEwMjQwMzQsIDAuNDAzMjQ1NzJdLCBbIDAuODQzMTI2NjgsIDAuODE0NjkwNTMsIDAuMjc4NDUxNiBdXSkKQiA9IEEKCkFBID0gbnAuYXJyYXkoWzMuXSkKQkIgPSBBQQoKcHJpbnQgQgpwcmludCBCQgoKCgojY2hhbmdlIEEsQUEKVCA9IG5wLmFycmF5KFtbNC4xNDA4NzY5LDMuNTEzNTQxOTksMS4yODk5MzExMiwxMC41NDAzMDQ0MSw4LjcxMjk5MTE5LDMuMTI4NzMwMjhdLCAKWzE2LjkzOTczMTkyLDEzLjkxMjQ0MDM5LDQuOTY3NTI5NDQsMjMuMzM5MTU5NDQsMTkuMTExODg5Niw2LjgwNjMyODYgXSwKWzMuNTczNTcyODUsMy4wNTAxNzk2NywxLjIxOTM4ODg2LDkuNjYzMjk4NTYsNy41Nzk5OTQzNiwgMy4xOTE0NTQ3OV0sClsxNS43NTMwMjQyNiwxMi4xMDk4MDkw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