G
Gerry Ford
I just busted out my c++ reference from purgatory and find that it doesn't
help my question at hand, concerning the inner product of vectors. 'vector'
is not in the index.
The programs in this reference are of the form void(main), so I'm left to
find a better syntax on the net. Since I want vectors and I want output, I
would assume that I have at least the following gheasders:
#include <iostream.h>
#include <vectors.h>
I don't need anything off the command line, so I think that
int main (void) { return 0; }
is right. ??
I'm given to understand that many of fortran's vector capabilities have an
analog in c++. How would I declare and print a single four_vector, with
double-wide real entries. For the purpose of illustration, let's make the
ith entry the real square root of i:
0.0000..
1.0000...
1.414....
1.732..
Since we're taking roots, we'll have to include math.h as well. How does
one declare such a vector portably?
help my question at hand, concerning the inner product of vectors. 'vector'
is not in the index.
The programs in this reference are of the form void(main), so I'm left to
find a better syntax on the net. Since I want vectors and I want output, I
would assume that I have at least the following gheasders:
#include <iostream.h>
#include <vectors.h>
I don't need anything off the command line, so I think that
int main (void) { return 0; }
is right. ??
I'm given to understand that many of fortran's vector capabilities have an
analog in c++. How would I declare and print a single four_vector, with
double-wide real entries. For the purpose of illustration, let's make the
ith entry the real square root of i:
0.0000..
1.0000...
1.414....
1.732..
Since we're taking roots, we'll have to include math.h as well. How does
one declare such a vector portably?