Exemplo n.º 1
0
 /// <summary>
 /// Converts the string representation of a complex sparse vector to double-precision sparse vector equivalent.
 /// A return value indicates whether the conversion succeeded or failed.
 /// </summary>
 /// <param name="value">
 /// A string containing a complex vector to convert.
 /// </param>
 /// <param name="result">
 /// The parsed value.
 /// </param>
 /// <returns>
 /// If the conversion succeeds, the result will contain a complex number equivalent to value.
 /// Otherwise the result will be <c>null</c>.
 /// </returns>
 public static bool TryParse(string value, out SparseVector result)
 {
     return(TryParse(value, null, out result));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Outer product of this and another vector.
 /// </summary>
 /// <param name="v">The vector to operate on.</param>
 /// <returns>
 /// Matrix M[i,j] = this[i] * v[j].
 /// </returns>
 public Matrix <Complex> OuterProduct(SparseVector v)
 {
     return(OuterProduct(this, v));
 }