Example #1
0
 /// <summary>
 /// Returns the transpose of the row vector.
 /// </summary>
 /// <returns>An independent column vector with the same components as the row vector.</returns>
 public ColumnVector Transpose()
 {
     double[] copy = VectorAlgorithms.Copy(store, offset, stride, dimension);
     return(new ColumnVector(copy, dimension));
 }
Example #2
0
 /// <summary>
 /// Returns a copy of the row vector.
 /// </summary>
 /// <returns>An independent copy of the row vector.</returns>
 public RowVector Copy()
 {
     double[] copy = VectorAlgorithms.Copy(store, offset, stride, dimension);
     return(new RowVector(copy, dimension));
 }
Example #3
0
 /// <summary>
 /// Returns the vector elements in an independent array.
 /// </summary>
 /// <returns>An array containing the vector element values.</returns>
 public virtual new double[] ToArray()
 {
     return(VectorAlgorithms.Copy(store, offset, stride, dimension));
 }