DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    dmc Guest

    50 x 50 matrix operations


    My data structures book has an exercise which asks the student to add and
    subtract two 50 x 50
    square matrixes. I was under the impression (through books I have read) that
    arithmetic operations
    involving arrays are not allowed. Am I right in this assumption?

    dmc

  2. #2
    Sorin Gherman Guest

    Re: 50 x 50 matrix operations


    Right, C/C++ does not have operations (like addition, substraction, multiplication,
    etc) defined for arrays.
    But you are able to define your own array (or matrix) classes and can define
    operators on them.

    But the problem you describe is about algorithms handling big structures
    of data which cannot fit all in memory at the same time, not about array
    operations.

    Sorin Gherman

    "dmc" <hedgracerdavid@netscape.net> wrote:
    >
    >My data structures book has an exercise which asks the student to add and
    >subtract two 50 x 50
    >square matrixes. I was under the impression (through books I have read)

    that
    >arithmetic operations
    >involving arrays are not allowed. Am I right in this assumption?
    >
    >dmc



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links