Antst
2010-10-21 10:34:59 UTC
I have a function defined as:
inline double myFunction( const long int z ) const
{ return C->myFunction[ C->z[ z ] ]; }
and called in main() as:
for ( long int i = 0; i < 10; i++ )
{
for ( long int j = 0; j < 20; j++ )
{
node->myFunction( myMatrix(i,vector[j] ) );
}
}
I want to use a matrix as the argument, but I keep getting a segmentation fault when I try to run the program. I don't understand why. Can anyone help based on the information I have given? I can change the argument, but not the function.
Thanks a lot for any help!