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

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

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:
    857
    Nevets Steprock
    Jun 14, 2005
  2. empire5
    Replies:
    8
    Views:
    484
    Juan T. Llibre
    Jan 14, 2007
  3. josh
    Replies:
    5
    Views:
    2,312
  4. T Koster

    Circular (triangular) structure reference

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

    Triangular Matrix

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

    Triangular Matrix2

    Je-Givara, Oct 31, 2006, in forum: C Programming
    Replies:
    4
    Views:
    463
    Je-Givara
    Nov 2, 2006
  7. Obnoxious User

    triangular matrix

    Obnoxious User, Aug 27, 2008, in forum: C Programming
    Replies:
    10
    Views:
    1,196
    osmium
    Aug 28, 2008
  8. Mike Amling

    FlowLayout for triangular region?

    Mike Amling, Aug 8, 2009, in forum: Java
    Replies:
    4
    Views:
    492
    Roedy Green
    Aug 8, 2009
Loading...