set_coefficient
Method of StateVector<Real,Unknown,Dense,Complete>.
set_coefficient(integer index, const real coefficient) -> StateVector<Real,Unknown,Dense,Complete>
Sets the coefficient of the state vector at the specified index equal to the provided value.
Returns the coefficient corresponding to the basis state at the given index.
Parameters
- index: Index of the basis state.
- coefficient: New value of the state vector coefficient.