[Fwd: Re: Array index out of bounds in svd.times()]





-------- Original Message --------
Subject: 	Re: Array index out of bounds in svd.times()
Date: 	Fri, 29 Jun 2007 11:27:12 -0400 (EDT)
From: 	Alexander Frey <alexanderfrey@gmail.com>
Reply-To: 	alexanderfrey@gmail.com
To: 	boisvert@nist.gov
References: 	<a9628f570706290723g5387d8e2m3f9fae472001edc3@mail.gmail.com>



I have tracked the problem down to the point where I find that 
svd.getS() throws the arrayoutofbounds exception.
I builded the matrix from which I compute the SVD by passing the Matrix 
constructor a double[][] array. The array has 2 rows and 16 columns. 
Many of the entries are zeros and 1's .

Where could be the problem ?

Thank you, Alexander

2007/6/29, Alexander Frey <alexanderfrey@gmail.com 
<mailto:alexanderfrey@gmail.com>>:

    Hello,

    I get an array index out of bounds after trying to multiply 2
    matrices from svd.

    Matrix us = svd.getU().times(svd.getS());

    This should give me the multiplied matrix m = U * S  

    What do I do wrong ?


    Thank you, Alexander







Date Index | Thread Index | Problems or questions? Contact list-master@nist.gov