DiscussionsIssue archiveOther usage issues

Archived discussion

math_Matrix variable

Other usage issuesSun, 10/24/2004 - 13:397 replies

Browse this forum
QuestionAuthor

Hi 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.

Discussion

7 archived replies

Posts are displayed in their archived order.

01Commenter-1

Hi Alex,

you can set the numbers in the constructor.

HTH,

Commenter-1

02Commenter-2

Hi sir,
How?
Regards

03Commenter-1

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,

Commenter-1

04Commenter-2

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,
Commenter-2

05Commenter-1

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,

Commenter-1

06Commenter-2

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,
Commenter-2

07Commenter-1

Hi,

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

Regards,

Commenter-1