| 18 | }; |
| 19 | |
| 20 | cca_outputs _cca1 ( |
| 21 | const std::vector<sparse_vect>& L, |
| 22 | const std::vector<sparse_vect>& R, |
| 23 | unsigned long num_correlations, |
| 24 | unsigned long extra_rank, |
| 25 | unsigned long q, |
| 26 | double regularization |
| 27 | ) |
| 28 | { |
| 29 | pyassert(num_correlations > 0 && L.size() > 0 && R.size() > 0 && L.size() == R.size() && regularization >= 0, |
| 30 | "Invalid inputs"); |
| 31 | |
| 32 | cca_outputs temp; |
| 33 | temp.correlations = cca(L,R,temp.Ltrans,temp.Rtrans,num_correlations,extra_rank,q,regularization); |
| 34 | return temp; |
| 35 | } |
| 36 | |
| 37 | // ---------------------------------------------------------------------------------------- |
| 38 | |