Lionel Rossi

Greenhorn
+ Follow
since Sep 07, 2015
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Lionel Rossi

Thanks for your help! I understood what did you told to me

Maybe at the moment i'm looking only for write the correct methods that works without think about the correct way in which i need to write software but i've got exam in these days on Java and i must clear all doubt if i want pass. Then next week i ll start to write good code for the final test (I ll create a programm with all UML diagram).

Best Regards
9 years ago
Well, thanks for your answers but i think that i need some more example to understand well this concept
9 years ago

Stephan van Hulst wrote:Okay, so before you start working with threads, why don't you start by creating a Matrix class that models a single matrix, which contains a multiply(Matrix other) method that returns a new Matrix. You should also add a method determinant() that returns an int.

Try getting this code to work (hint, use unit tests!) and then show us your code, or show us where you get stranded with an explanation of the problem. Don't worry about threads yet!



I just finish the code of Matrix product



I don't have no idea to how implement the method of determinant
9 years ago
Hi,

I'm newest of the Java programming, i don't use so much the word "static" in variable or methods because i didn't understand well how really do. Can anyone explain me in which situation i can use "static" or better when it recomand to use it?

I already do confusion with another word "final". Which are the difference between this two word?

Best Regards
9 years ago

Campbell Ritchie wrote:Welcome to the Ranch (again)

Why do you say you need several threads?
What is the algorithm for calculating a matrix determinant?



Hi Campbell,

1) For the first point (Product of Matrix) it is the exercise that impose me to use n thread one for each cells i know that is not a good solution but i must do it
2) For calculate the matrix determinant i think that first i need to check the dimension of the matrix (If is 2x2 is simply). For matrix that have a dimension bigger than 2x2 i need to calculate minor complementary so for each step i need to eliminate one row and one column
9 years ago

Stephan van Hulst wrote:Can you explain to us what the problem is that you're experiencing? We can't help you if we don't know what's wrong.



I've got two different problems:

1) I need to create a software for calculate the product of two matrix in which i need to use n thread one for each cells of the matrix result (For this problem i posted a code that calculate the product of matrix but not using n thread for each cells of the matrix result)
2) I need to create a software for calculate the determinant of the matrix using thread (I don't have any idea to how to create a software that do this)

9 years ago
Hi,

I've got a big problem for calculate matrix determinant using thread, is anyone have a code that can pass me for see in which way i can use thread for resolve this problem?

Best Regards
9 years ago
Hi,

I kindly ask you this simply question, in Java every class inherits directly or not directly for the object class. I think because in Java everything is an object and for give to the programmer some guide line for the classes that ll be create and also give some important methods that can be used by other classes (for example toString ecc...). There are other reason and other advantage about this thing?

Best Regards

9 years ago
Hello to everyone,

I know that can be a stupid question, but i kindly ask you if you have a code for matrix multiplication with thread. My problem is that i need to generate n thread one for each cells of the matrix result.

This is the function that i had produce, it works but it doesn't do what i need



Anyone can help me please? I know that probably i ll have less fast of the program, but it is an exercise.

Thanks a lot for your cooperation and looking forward into your answer

best Regards
9 years ago