70 const std::vector< T > &x,
71 const std::vector< T > &y
77size_t n = std::min(x.size(), y.size());
78std::vector< T > z(n, T(0));
83for (
size_t i = 0; i < n; i++){
110 const std::vector< T > &x,
118std::vector< T > z(n, T(0));
123for (
size_t i = 0; i < n; i++){
151 const std::vector< T > &y
188 const std::vector< std::vector< T > > &x,
196std::vector< std::vector< T > > z(n);
201for (
size_t i = 0; i < n; i++) {
230 const std::vector< std::vector< T > > &y
236std::vector< std::vector< T > > z;
269 const std::vector< T > &y
275size_t n = std::min(x.size(), y.size());
280for (
size_t i = 0; i < n; i++){
319for (
size_t i = 0; i < n; i++){
346 std::vector< std::vector< T > > &x,
358for (
size_t i = 0; i < n; i++) {
387 const std::vector< T > &x,
388 const std::vector< T > &y
394size_t n = std::min(x.size(), y.size());
395std::vector< T > z(n, T(0));
400for (
size_t i = 0; i < n; i++){
427 const std::vector< T > &x,
435std::vector< T > z(n, T(0));
440for (
size_t i = 0; i < n; i++){
468 const std::vector< T > &y
506 const std::vector< std::vector< T > > &y
513std::vector< std::vector< T > > z(n);
518for (
size_t i = 0; i < n; i++) {
546 const std::vector< std::vector< T > > &x,
553std::vector< std::vector< T > > z;
586 const std::vector< T > &y
592size_t n = std::min(x.size(), y.size());
597for (
size_t i = 0; i < n; i++){
636for (
size_t i = 0; i < n; i++){
663 std::vector< std::vector< T > > &x,
675for (
size_t i = 0; i < n; i++) {
704 const std::vector< T > &x,
705 const std::vector< T > &y
711size_t n = std::min(x.size(), y.size());
712std::vector<T> z(n, T(0));
717for (
size_t i = 0; i < n; i++){
744 const std::vector< T > &x,
752std::vector< T > z(n, T(0));
757for (
size_t i = 0; i < n; i++){
785 const std::vector< T > &y
823 const std::vector< std::vector< T > > &y
830std::vector< std::vector< T > > z(n);
835for (
size_t i = 0; i < n; i++) {
863 const std::vector< std::vector< T > > &x,
870std::vector< std::vector< T > > z;
903 const std::vector< T > &y
909size_t n = std::min(x.size(), y.size());
914for (
size_t i = 0; i < n; i++){
953for (
size_t i = 0; i < n; i++){
980 std::vector< std::vector< T > > &x,
992for (
size_t i = 0; i < n; i++) {
1021 const std::vector< T > &x,
1022 const std::vector< T > &y
1028size_t n = std::min(x.size(), y.size());
1029std::vector<T> z(n, T(0));
1034for (
size_t i = 0; i < n; i++){
1061 const std::vector< T > &x,
1071std::vector< T > z(n, T(0));
1079for (i = 0; i < n; i++) {
1107 const std::vector< T > &y
1114std::vector< T > z(n);
1119for (
size_t i = 0; i < n; i++) {
1148 const std::vector< std::vector< T > > &y
1155std::vector< std::vector< T > > z(n);
1160for (
size_t i = 0; i < n; i++) {
1188 const std::vector< std::vector< T > > &x,
1196std::vector< std::vector< T > > z(n);
1201for (
size_t i = 0; i < n; i++) {
1230 std::vector< T > &x,
1231 const std::vector< T > &y
1237size_t n = std::min(x.size(), y.size());
1242for (
size_t i = 0; i < n; i++){
1269 std::vector< T > &x,
1281for (
size_t i = 0; i < n; i++){
1308 std::vector< std::vector< T > > &x,
1320for (
size_t i = 0; i < n; i++) {
1355 const std::vector< T > &x
1371if (n == 0)
return(out);
1372for (
size_t i = 0; i < n-1; i++) {
1397 const std::vector< T > &x
1416for (
size_t i = 0; i < n-1; i++) {
1445 const std::vector< T > &x
1461if (n == 0)
return(out);
1462for (
size_t i = 0; i < n-1; i++) {
1510while ((in.good()) && (i < n)) {
1511 if (in >> dummy) { x[i] = dummy; i++; }
1514 if (in >> dummy) { x.push_back(dummy); }
1555while ((in.good()) && (i < n)) {
1556 if (in >> dummy) { x[i] = dummy; i++; }
1559 if (in >> dummy) { x.push_back(dummy); }
1584template<typename T, typename std::enable_if< std::is_scalar< T >::value>::type*>
1615 const std::vector<T> &x,
1616 unsigned int padding
1624typename std::vector<T>::const_iterator i, e = x.cend();
1633out << std::string(padding,
' ') <<
"[ ";
1635for (i = x.begin(); i != e; ++i) {
1651template<typename T, typename std::enable_if< std::is_scalar< T >::value>::type*>
1682 const std::vector<T> &x,
1683 unsigned int padding
1691typename std::vector<T>::const_iterator i, e = x.cend();
1700out << std::string(padding,
' ') <<
"[ ";
1702for (i = x.begin(); i != e; ++i) {
std::ostream & display(std::ostream &out, const T &x)
std::vector< T > operator*(const std::vector< T > &x, const std::vector< T > &y)
std::vector< T > operator-(const std::vector< T > &x, const std::vector< T > &y)
std::vector< T > operator/(const std::vector< T > &x, const std::vector< T > &y)
std::vector< T > & operator-=(std::vector< T > &x, const std::vector< T > &y)
std::vector< T > operator+(const std::vector< T > &x, const std::vector< T > &y)
std::vector< T > & operator/=(std::vector< T > &x, const std::vector< T > &y)
std::vector< T > & operator+=(std::vector< T > &x, const std::vector< T > &y)
std::vector< T > & operator*=(std::vector< T > &x, const std::vector< T > &y)
std::istream & operator>>(std::istream &in, std::vector< T > &x)
std::ostream & operator<<(std::ostream &out, const std::vector< T > &x)