docs: function(A, b) {
        // b is a scalar, A is a scalar or a vector
        if (typeof A === "number") {
          return A * b;
        }
        else {
          return A.map(function(x) { return x * b; });
        }
      }