Results 1 to 4 of 4
Thread: Help with System.arrayCopy
- 02-22-2011, 03:05 AM #1
Help with System.arrayCopy
I need some help rewriting the System.arrayCopy portion of this code. Is there any other way to get the same result without using the arrayCopy function?
for (int i = 0; i < mat[0].length; i++) {
int minor[][] = new int[mat.length - 1][mat[0].length - 1];
for (int j = 2; j < mat.length; j++) {
System.arraycopy(mat[j], 0, minor[j - 1], 0, i);
System.arraycopy(mat[j], i + 1, minor[j - 1], i, mat[0].length - i - 1);
}
answer = mat[0][i] * Math.pow(-1, i) * determinant(minor);
}
- 02-22-2011, 03:07 AM #2
Not without further details.
- 02-22-2011, 03:10 AM #3
ok, I think the System.arrayCopy is creating the minor of my matrixData[][]. So I just wanted another way of getting the same result.
- 02-22-2011, 03:28 AM #4
Similar Threads
-
copy arrays without using arraycopy Method !
By M7MD in forum IntroductionsReplies: 0Last Post: 10-10-2010, 06:59 PM -
Convert Cartesian coordinate system into java coordinate system?
By 123 in forum Java 2DReplies: 3Last Post: 02-07-2010, 08:34 PM -
System.exit 0 or 1?
By antgaudi in forum New To JavaReplies: 3Last Post: 11-13-2008, 06:33 PM -
System.out.println
By sunjavaboy in forum Advanced JavaReplies: 3Last Post: 03-22-2008, 01:30 AM -
System.getProperties(key)
By diRisig in forum New To JavaReplies: 1Last Post: 02-06-2008, 12:11 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks