A question about Matrixes and Triangular matrixes

Discussion in 'C++' started by KinGPIN, Jul 23, 2006.

  1. KinGPIN

    KinGPIN Guest

    hi ; I have a homework about CMatrix; and i had a problem ;in my
    homowork i hace functions and operators written for CMatrix class(this
    was my first homework); it is wanted to inherite the functions in
    CMatrix for CTriangular matrix ;and then inherite the CTriangular
    matrix as upper and lower triangular matrixes.In addition ;in the
    homework zero elements of matrixes will not be stored to use the memory
    efficiently;for example a diagonal matrise is shown as a vector as the
    size of columns.[222]my problem is :i can not write the CTriangular
    matrix to combine the upper and lower matrixes because both of these
    matrixes are in a different struct ;how can i write a constructer both
    of these is included)
    ;if you have any idea please tell.thanks...
    KinGPIN, Jul 23, 2006
    #1
    1. Advertising

  2. KinGPIN

    mlimber Guest

    KinGPIN wrote:
    > hi ; I have a homework about CMatrix; and i had a problem ;in my
    > homowork i hace functions and operators written for CMatrix class(this
    > was my first homework); it is wanted to inherite the functions in
    > CMatrix for CTriangular matrix ;and then inherite the CTriangular
    > matrix as upper and lower triangular matrixes.In addition ;in the
    > homework zero elements of matrixes will not be stored to use the memory
    > efficiently;for example a diagonal matrise is shown as a vector as the
    > size of columns.[222]my problem is :i can not write the CTriangular
    > matrix to combine the upper and lower matrixes because both of these
    > matrixes are in a different struct ;how can i write a constructer both
    > of these is included)
    > ;if you have any idea please tell.thanks...


    Show us the code you have so far (at least the class declarations if
    not the definitions), and we might be able to help more.

    Cheers! --M
    mlimber, Jul 24, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nevets Steprock
    Replies:
    10
    Views:
    680
    Nevets Steprock
    Jun 14, 2005
  2. empire5
    Replies:
    8
    Views:
    292
    Juan T. Llibre
    Jan 14, 2007
  3. josh
    Replies:
    5
    Views:
    1,930
  4. T Koster

    Circular (triangular) structure reference

    T Koster, Feb 8, 2005, in forum: C Programming
    Replies:
    6
    Views:
    365
    infobahn
    Feb 8, 2005
  5. Je-Givara

    Triangular Matrix

    Je-Givara, Oct 30, 2006, in forum: C Programming
    Replies:
    5
    Views:
    415
    linuxlong
    Nov 6, 2006
Loading...

Share This Page