You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\item a \texttt{grb::Vector<double>} \texttt{x} of length 100, with initial capacity 100;
126
126
\item a \texttt{grb::Vector<double>} \texttt{y} of length 1\ 000, with initial capacity 1\ 000;
127
127
\item a \texttt{grb::Matrix<double>} \texttt{A} of size $(100\times1\ 000)$, with initial capacity 1\ 000; and
128
-
\item a \texttt{grb::Matrix<double>} \texttt{A} of size $(100\times1\ 000)$, with initial capacity 5\ 000.
128
+
\item a \texttt{grb::Matrix<double>} \texttt{B} of size $(100\times1\ 000)$, with initial capacity 5\ 000.
129
129
\end{itemize}
130
130
You may start from a copy of \texttt{alp\_hw.cpp}. Employ \texttt{grb::capacity} to print out the capacities of each of the containers. \textbf{Hint:} refer to the user documentation on how to override the default capacities.
0 commit comments