Revision 692 branches/merge-trunk-davef/src/linad99/df12fun.cpp

df12fun.cpp (revision 692)
762 762
    num_ind_var=0;
763 763
  }
764 764

  
765
dvariable& dvariable::operator = (const df1_two_variable& v)
766
{
767
  const prevariable *px = df1_two_variable::ind_var[0];
768
  const prevariable *py = df1_two_variable::ind_var[1];
769
  const prevariable *pz = df1_two_variable::ind_var[2];
770
  double  dfx = *v.get_u_x();
771
  double  dfy = *v.get_u_y();
772
  value(*this) = *v.get_u();
773

  
774
  gradient_structure::GRAD_STACK1->set_gradient_stack(default_evaluation3,
775
      &(value(*this)),&(value(*px)),dfx,&(value(*py)),dfy);
776

  
777
  return *this;
778
}
779

  
765 780
/**
766 781
 * Description not yet available.
767 782
 * \param

Also available in: Unified diff