Search:

Type: Posts; User: circuitbreaker

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    2,502

    Thanks for your response Elysia. Would also like...

    Thanks for your response Elysia. Would also like some advice on the problem I am trying to solve.

    I am trying to solve differential equations involving matrices like y=A*x+B*u. Here y, x, u are...
  2. Replies
    10
    Views
    2,502

    After reading on expression templates...

    After reading on expression templates particularly the link below, I have a few basic questions:
    AngelikaLanger.com - Expression Templates - Angelika Langer Training/Consulting



    The above...
  3. Replies
    10
    Views
    2,502

    Thank you very much for your responses...

    Thank you very much for your responses Phantomotap and Elysia. I'll do some more reading before I write some more code and then I'll post again.
  4. Replies
    10
    Views
    2,502

    Basic doubt about expression templates

    Hello all,

    I am trying to use expression templates/template metaprogramming to solve matrix systems at compile time. Since I am just starting, I need some help to make sure I am on the right...
  5. Replies
    7
    Views
    3,066

    tabstop: Will try it out and let you know. ...

    tabstop:
    Will try it out and let you know.

    Thanks.
  6. Replies
    7
    Views
    3,066

    Thanks laserlight and grumpy for your responses....

    Thanks laserlight and grumpy for your responses.

    For now I need to improve on the solver I am using and decouple the static part of the circuit from the dynamic part.

    But a question for you...
  7. Replies
    7
    Views
    3,066

    Matrix operations using objects

    Hello all,

    I am trying to build an electrical simulator in C++. This will involve matrix manipulations to a great deal and so I created in my own class Matrix. I have overloaded all operators such...
  8. Replies
    8
    Views
    3,247

    Thanks Laserlight, Elysia and Grumpy.

    Thanks Laserlight, Elysia and Grumpy.
  9. Replies
    8
    Views
    3,247

    Matrix(unsigned int x = 0, unsigned int y = 0) :...

    Matrix(unsigned int x = 0, unsigned int y = 0) : rows(x), columns(y) {


    Would the above code be equivalent to


    Matrix(unsigned int x = 0, unsigned int y = 0) {
    rows=x;
    columns=y;
  10. Replies
    8
    Views
    3,247

    Thanks for the responses. I included the copy...

    Thanks for the responses. I included the copy constructor and a destructor in my class declaration. The program works fine. One more question:
    I have the following constructors in my class...
  11. Replies
    8
    Views
    3,247

    Creating and freeing dynamic arrays

    I am trying to write my own class Matrix that dynamically allocates two dimensional arrays and contains functions to perform addition, subtraction etc on objects of class Matrix. I have a few...
  12. Using the -ON optimization options reduces run...

    Using the -ON optimization options reduces run times to 9.6s. I used all various levels but couldn't get run times lesser than that. Guess I'll use gcc 4.1.2 on all my computers.

    Thanks.
  13. Thanks for the responses. I am attaching the...

    Thanks for the responses.

    I am attaching the program.
  14. Run time differences in Linux gcc versions

    Hi all,
    In my home computer I've got Slackware 12 with gcc 4.1.2. I wrote a C++ program (could attach the code if you want) and I got a run time of around 2.2s. I transferred the same C++ program to...
  15. Thanks anon, Elysia and cpjust. I'll read up more...

    Thanks anon, Elysia and cpjust. I'll read up more on this assert().
  16. Thanks CornedBee. I'll give up on this one.

    Thanks CornedBee. I'll give up on this one.
  17. Finding the name of the object parameter

    I am writing a class for matrices by the name of Matrix. I have an empty constructor Matrix() where I initialize the dimensions (rows and columns) of the matrix to zero. This is because I would like...
  18. Thanks vart. In C I used functions where the...

    Thanks vart.

    In C I used functions where the return array and the arrays to be operated on were passed as references. That code though working under many different conditions is a little hard to...
  19. I added a copy constructor to both programs and I...

    I added a copy constructor to both programs and I get the same problem.

    My question is why does dynamic_array_trial.cpp compile and run without any error while runge_kutta1.cpp gives a seg fault?...
  20. Dynamic allocation of 2 dim. arrays in classes

    I had written a C++ program to manipulate two dimensional matrices using classes. Initially all the arrays within the class matrix were of fixed dimensions. I am trying out dynamic memory allocation...
  21. Thanks Elysia, Laserlight and CornedBee.

    Thanks Elysia, Laserlight and CornedBee.
  22. Sorry if I sound like a dumbass but I just...

    Sorry if I sound like a dumbass but I just started coding in C++ and am taking time figuring out some stuff.

    Suppose I make a change in the code:



    matrix matrix::operator=(const matrix...
  23. Thanks Elysia. I also found this very...

    Thanks Elysia.

    I also found this very interesting link about the use of const:
    http://www.parashift.com/c++-faq-lite/const-correctness.html
  24. Passing object references to functions

    Hello all,
    I had posted a code regarding operations of matrices leading to a function using these matrix operations iteratively. Here's the post for reference,...
  25. Replies
    20
    Views
    4,443

    Thanks for the lightning fast responses. The...

    Thanks for the lightning fast responses. The reason why I return objects of the the class matrix is so as to make the main code similar to MATLAB code in case someone else in my lab wants to use it....
Results 1 to 25 of 28
Page 1 of 2 1 2