src/Matrix/col_vector.cc
// Input                cvec : Column vector (this)
// Output               void : The function sends questions to
//                             standard output interactively asking
//                             the user to supply the information to
//                             specify the vector. Vector is modified.
// Note                      : Function is for INTERACTIVE programs
Input                cvec : Column vector (this)
Output               void : The function sends questions to
standard output interactively asking
the user to supply the information to
specify the vector. Vector is modified.
Note                      : Function is for INTERACTIVE programs
Input cvec : Column vector ( this ) Output void : The function sends questions to standard output interactively asking the user to supply the information to specify the vector . Vector is modified . Note : Function is for INTERACTIVE programs
void col_vector::ask()
  {
  int dim;
  double dr,di;
  std::cout << "\n\tPlease Input the Number of Elements: ";
  std::cin >> dim; 
  col_vector cvec(dim);
  for(int i=0; i<dim; i++ )
    {
    std::cout << "\n\tPlease Input Real and Imaginary Value of cvec("
         << i << ") [re im]: ";
    std::cin >> dr >> di;
    cvec.put(complex(dr,di),i);
    }
  *(this) = cvec;
  return;
  }
void col_vector :: ask ( ) { int dim ; double dr , di ; std :: cout << " \n \t " ; std :: cin >> dim ; col_vector cvec ( dim ) ; for ( int i = 0 ; i < dim ; i ++ ) { std :: cout << " \n \t " << i << " " ; std :: cin >> dr >> di ; cvec . put ( complex ( dr , di ) , i ) ; } * ( this ) = cvec ; return ; }
Input                cvec : Column vector (this)
Output               void : The function sends questions to
standard output interactively asking
the user to supply the information to
specify the vector.
Input cvec : Column vector ( this ) Output void : The function sends questions to standard output interactively asking the user to supply the information to specify the vector .