Search:

Type: Posts; User: shuo

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,162

    Or else, How do you change the stack size emory?

    Or else, How do you change the stack size emory?
  2. Replies
    7
    Views
    1,162

    Can the blitz library do large multi-dimensional...

    Can the blitz library do large multi-dimensional array operations?
  3. Replies
    7
    Views
    1,162

    can you have multi-dimensional vectors?

    can you have multi-dimensional vectors?
  4. Replies
    7
    Views
    1,162

    multi-dimensional arrays

    i declared an array x[300][300][10] and it gave a segmentation fault. Is it do to with memoery allocation because it worked for smaller sizes x[30][30][3]?
  5. Replies
    4
    Views
    1,484

    maybe its easier just to declare them as...

    maybe its easier just to declare them as multidimensional arrays.
    double X[3][3][3].

    But then you can't return them from function calls.
  6. Replies
    4
    Views
    1,484

    multi-dimensional array

    i keep getting a segmentation falut when declaring the an object of the following class.




    // Declare a class for column matricies

    class matrix_col{

    private:
  7. Thread: array function

    by shuo
    Replies
    1
    Views
    911

    array function

    How to return an array from a function?
  8. Replies
    5
    Views
    2,376

    compiling using gprof

    i am trying to modifying my makefile so that I can use the gprof profiler. Hwowever the following file doesn,t generate the .o executable.




    supersonic = Impinging_jet_21

    OBJECTS =...
  9. Replies
    3
    Views
    1,285

    matrix operation optimization

    Hi

    I am trying to implement a code that requires 4 x 4, 4x 1 matrix operations at each grid node on a 2-D computational space.

    Are there C/C++ libraries available that can do handle this type...
  10. Thread: string Q

    by shuo
    Replies
    3
    Views
    675

    string Q

    I have a recurring code section that writes data files to a specific directory.
    ../../Data_x_r/PR2/Scheme_2_TVD_1/. Can i specify as a string "'constant" so that I only change it once rather going...
  11. Thread: time

    by shuo
    Replies
    10
    Views
    1,158

    Still gives the same answer.

    Still gives the same answer.
  12. Thread: time

    by shuo
    Replies
    10
    Views
    1,158

    #include #include int...

    #include <stdio.h>
    #include <time.h>

    int main ( void )
    {
    clock_t start, end;

    /* Start the timer */
    start = clock();
  13. Thread: time

    by shuo
    Replies
    10
    Views
    1,158

    I tried running the programs. it keeps giving...

    I tried running the programs. it keeps giving 0.000000 seconds when i waited for a couple of seconds.
  14. Thread: time

    by shuo
    Replies
    10
    Views
    1,158

    time

    Hi

    How can i find out the time taken to run each iteration in the program below?



    #include <stdio.h>
    #include <time.h>

    #include <iostream>
  15. Thread: std::vector

    by shuo
    Replies
    7
    Views
    1,441

    Thanks for the advice

    Thanks for the advice
  16. Thread: std::vector

    by shuo
    Replies
    7
    Views
    1,441

    std::vector

    Can I overload operators +/-* for std::vector? Also how can I pass it into functions?




    #include <iostream>
    #include <iomanip>
    #include <stdio.h> // standard input/output
    #include...
  17. Replies
    39
    Views
    15,869

    variable array size

    Hello

    How can I create an array with changing size?

    Shuo
  18. Thread: double conversion

    by shuo
    Replies
    3
    Views
    1,072

    double conversion

    How do I convert double 1.00 into int 1?
  19. Thread: arithmetic

    by shuo
    Replies
    1
    Views
    1,054

    arithmetic

    For integers 5/2 = 2; 5%2 = 1;
    is there a similar function for double variables.
    etc 5.2/2 = 2; 5.2%2 = 1.2?

    Shuo
  20. Thread: makefile error

    by shuo
    Replies
    4
    Views
    2,325

    makefile error

    Hi

    I'm getting a strange makefile error:

    make: warning: Clock skew detected. Your build may be incomplete.

    What does it mean?
    Shuo
  21. Thread: makefile

    by shuo
    Replies
    1
    Views
    1,375

    makefile

    Hi,

    I try running a make file using

    >make supersonic_ob

    but get the following error message:

    >makefile:2: *** missing separator. Stop.
  22. Thread: blas library

    by shuo
    Replies
    3
    Views
    1,482

    blas library

    Hi all

    I am new to blas and want to know how to write a code for simple matrix multiplication A*B.
    Not sure how to define the matricies/vectors.

    Shuo
  23. Thread: read data

    by shuo
    Replies
    1
    Views
    877

    read data

    How can I modify the code to input the second columns of the following data file into array x[N]

    VELOCITY
    3 4 5
    4 5 6
    ...N

    x[] = 4, 5 ...N
  24. Thread: string

    by shuo
    Replies
    3
    Views
    765

    How can I modify the code to input the second...

    How can I modify the code to input the second columns of the following data file into array x[N]

    VELOCITY
    3 4 5
    4 5 6
    ...N

    x[] = 4, 5 ...N
  25. Thread: string

    by shuo
    Replies
    3
    Views
    765

    string

    how do i equate strings in if statements


    int main(0{

    string str;

    if(str = "hello"){...}

    return 0;
Results 1 to 25 of 66
Page 1 of 3 1 2 3