CARVIEW |
Select Language
HTTP/2 200
date: Mon, 13 Oct 2025 00:48:20 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=4d00c87ddc2c3522a8d636f1b4915ad86b7f993f39d403d37ba32eb6f3f87ca0a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22YMvSYDmYLXT3YwrlWJpA0eRYZ06Titwy%22%3B%7D; HttpOnly; Path=/
cf-ray: 98dad4acece7ea32-BLR
cv2cm and cm2cv for class bin - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % functions to get a Walsh permutation's compression matrix from the compression vector and vice versa
- % for the bin class see https://pastebin.com/K02wGsae
- function y = cv2cm(x)
- % compression vector of type bin to compression matrix of type logical
- Long = length(x) ;
- Mat = false(Long) ;
- for n = 1 : Long
- for k = 1 : x(n).Weight
- Mat( x(n).Expo(k)+1 , n ) = 1 ;
- end
- end
- y = Mat ;
- end
- function y = cm2cv(x)
- % compression matrix of type logical to compression vector of type bin
- Long = size(x,1) ;
- CV = bin([1 Long],'pre') ;
- for n=1:Long
- Weight = sum(x(:,n)) ;
- Expo = zeros( 1 , Weight ) ;
- Count = 1 ;
- for m=1:Long
- if x(m,n) == 1
- Expo(Count) = m-1 ;
- Count = Count + 1 ;
- end
- end
- CV(n) = bin(Expo) ;
- end
- y = CV ;
- end
Advertisement
Add Comment
Please, Sign In to add comment
-
⚡ Crypto Swap Glitch ✅ Working ⚡
JavaScript | 4 sec ago | 0.24 KB
-
⭐⭐⭐MAKE $900 INSTANTLY⭐⭐
Java | 6 sec ago | 0.15 KB
-
💡 Instant BTC Profit Method ✅ Working
JavaScript | 13 sec ago | 0.24 KB
-
⭐⭐⭐Make $15OO in 2O minutesV E⭐⭐
Java | 17 sec ago | 0.15 KB
-
⭐⭐⭐MAKE $9OO INSTANTLY D A⭐⭐
Java | 28 sec ago | 0.15 KB
-
⭐⭐⭐MAKE $9OO INSTANTLY D M⭐⭐
Java | 39 sec ago | 0.15 KB
-
✅⭐ Make huge profits on trading ⭐⭐ Z
JavaScript | 40 sec ago | 0.25 KB
-
💵 Make 3000$ in 20 minutes 💵
JavaScript | 45 sec ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand