Or else, How do you change the stack size emory?
Type: Posts; User: shuo
Or else, How do you change the stack size emory?
Can the blitz library do large multi-dimensional array operations?
can you have multi-dimensional vectors?
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]?
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.
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:
How to return an array from a function?
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 =...
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...
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...
Still gives the same answer.
#include <stdio.h>
#include <time.h>
int main ( void )
{
clock_t start, end;
/* Start the timer */
start = clock();
I tried running the programs. it keeps giving 0.000000 seconds when i waited for a couple of seconds.
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>
Thanks for the advice
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...
Hello
How can I create an array with changing size?
Shuo
How do I convert double 1.00 into int 1?
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
Hi
I'm getting a strange makefile error:
make: warning: Clock skew detected. Your build may be incomplete.
What does it mean?
Shuo
Hi,
I try running a make file using
>make supersonic_ob
but get the following error message:
>makefile:2: *** missing separator. Stop.
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
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
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
how do i equate strings in if statements
int main(0{
string str;
if(str = "hello"){...}
return 0;