Anonymous (not verified) Sun, 10/24/2004 - 13:39 Forums: Other usage issuesHi All, Is there any way to define a math_Matrix variable and then set its parameters (number of rows and columns)? Thanks for any Helps. Patrik Mueller Sun, 10/24/2004 - 15:54 Hi Alex, you can set the numbers in the constructor. HTH, Patrik Log in to post comments Alex (not verified) Mon, 10/25/2004 - 15:20 Hi sir, How? Regards Log in to post comments Patrik Mueller Tue, 10/26/2004 - 08:41 Hi, from the docs: math_Matrix A(1, 10, 1, 10); math_Matrix B(1, 10, 1, 10, 0.0); math_Matrix (const Standard_Integer LowerRow, const Standard_Integer UpperRow, const Standard_Integer LowerCol, const Standard_Integer UpperCol); math_Matrix (const Standard_Integer LowerRow, const Standard_Integer UpperRow, const Standard_Integer LowerCol, const Standard_Integer UpperCol, const Standard_Real InitialValue); HTH, Patrik Log in to post comments Alex (not verified) Tue, 10/26/2004 - 11:52 Hi Patrik, You dont understand what my problem is. I want to define math_Matrix A(a,b,c,d) then set a,b,c and d. Regards, Alex Log in to post comments Patrik Mueller Wed, 10/27/2004 - 10:57 Hi Alex, how about that: math_matrix result; math_matrix tempMatrix(a,b,c,d); result = tempMatrix; this should give you the possibility using again the same matrix. What would you do with the matrix? Greets, Patrik Log in to post comments Alex (not verified) Sat, 10/30/2004 - 11:48 Hi Patrik, Thank you for your response and sorry for late. "math_matrix result;" makes the following error. error C2512: 'math_Matrix' : no appropriate default constructor available Error executing cl.exe. Regards, Alex Log in to post comments Patrik Mueller Tue, 11/02/2004 - 13:23 Hi, sorry - my mistake. You have to try something different :-(( Regards, Patrik Log in to post comments

Sun, 10/24/2004 - 15:54

Hi Alex,

you can set the numbers in the constructor.

HTH,

Patrik

Mon, 10/25/2004 - 15:20

Hi sir,

How?

Regards

Tue, 10/26/2004 - 08:41

Hi,

from the docs:

math_Matrix A(1, 10, 1, 10);

math_Matrix B(1, 10, 1, 10, 0.0);

math_Matrix (const Standard_Integer LowerRow,

const Standard_Integer UpperRow,

const Standard_Integer LowerCol,

const Standard_Integer UpperCol);

math_Matrix (const Standard_Integer LowerRow,

const Standard_Integer UpperRow,

const Standard_Integer LowerCol,

const Standard_Integer UpperCol,

const Standard_Real InitialValue);

HTH,

Patrik

Tue, 10/26/2004 - 11:52

Hi Patrik,

You dont understand what my problem is.

I want to define math_Matrix A(a,b,c,d) then set a,b,c and d.

Regards,

Alex

Wed, 10/27/2004 - 10:57

Hi Alex,

how about that:

math_matrix result;

math_matrix tempMatrix(a,b,c,d);

result = tempMatrix;

this should give you the possibility using again the same matrix. What would you do with the matrix?

Greets,

Patrik

Sat, 10/30/2004 - 11:48

Hi Patrik,

Thank you for your response and sorry for late.

"math_matrix result;" makes the following error.

error C2512: 'math_Matrix' : no appropriate default constructor available

Error executing cl.exe.

Regards,

Alex

Tue, 11/02/2004 - 13:23

Hi,

sorry - my mistake. You have to try something different :-((

Regards,

Patrik