I have a question on filling a lower triangular matrix using numpy. This
is essentially having two loops and the inner loop upper limit is the
outer loop current index. In the inner loop I have a vector being
multiplied by a constant set in the outer loop. For a matrix N*N in size,
the C the code is:

for(i = 0; i < N; ++i){
    for(j = 0; j < i; ++j){
        Matrix[i*N + j] = V1[i] * V2[j];
    }
}


Thanks


Tom
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to