* create a weight matrix order as intvec of an extra weight vector (a(iv),lp)* ******************************************************************************/
| 962 | * create a weight matrix order as intvec of an extra weight vector (a(iv),lp)* |
| 963 | ******************************************************************************/ |
| 964 | intvec* MivMatrixOrder(intvec* iv) |
| 965 | { |
| 966 | int i, nR = iv->length(); |
| 967 | |
| 968 | intvec* ivm = new intvec(nR*nR); |
| 969 | |
| 970 | for(i=0; i<nR; i++) |
| 971 | { |
| 972 | (*ivm)[i] = (*iv)[i]; |
| 973 | } |
| 974 | for(i=1; i<nR; i++) |
| 975 | { |
| 976 | (*ivm)[i*nR+i-1] = 1; |
| 977 | } |
| 978 | return ivm; |
| 979 | } |
| 980 | |
| 981 | /********************************************************************************* |
| 982 | * create a weight matrix order as intvec of an extra weight vector (a(iv),M(iw)) * |
no test coverage detected