/// <summary>
 /// Create a new dense vector as a copy of the given array.
 /// This new vector will be independent from the array.
 /// A new memory block will be allocated for storing the vector.
 /// </summary>
 public static DenseVector OfArray(Complex32[] array)
 {
     return(new DenseVector(DenseVectorStorage <Complex32> .OfVector(new DenseVectorStorage <Complex32>(array.Length, array))));
 }
 /// <summary>
 /// Create a new dense vector as a copy of the given other vector.
 /// This new vector will be independent from the other vector.
 /// A new memory block will be allocated for storing the vector.
 /// </summary>
 public static DenseVector OfVector(Vector <Complex32> vector)
 {
     return(new DenseVector(DenseVectorStorage <Complex32> .OfVector(vector.Storage)));
 }
Beispiel #3
0
 /// <summary>
 /// Create a new dense vector as a copy of the given array.
 /// This new vector will be independent from the array.
 /// A new memory block will be allocated for storing the vector.
 /// </summary>
 public static DenseVector OfArray(float[] array)
 {
     return(new DenseVector(DenseVectorStorage <float> .OfVector(new DenseVectorStorage <float>(array.Length, array))));
 }
Beispiel #4
0
 /// <summary>
 /// Create a new dense vector as a copy of the given other vector.
 /// This new vector will be independent from the other vector.
 /// A new memory block will be allocated for storing the vector.
 /// </summary>
 public static DenseVector OfVector(Vector <float> vector)
 {
     return(new DenseVector(DenseVectorStorage <float> .OfVector(vector.Storage)));
 }
 /// <summary>
 /// Create a new dense vector as a copy of the given other vector.
 /// This new vector will be independent from the other vector.
 /// A new memory block will be allocated for storing the vector.
 /// </summary>
 public static DenseVector OfVector(Vector <double> vector)
 {
     return(new DenseVector(DenseVectorStorage <double> .OfVector(vector.Storage)));
 }
 /// <summary>
 /// Create a new dense vector as a copy of the given array.
 /// This new vector will be independent from the array.
 /// A new memory block will be allocated for storing the vector.
 /// </summary>
 public static DenseVector OfArray(double[] array)
 {
     return(new DenseVector(DenseVectorStorage <double> .OfVector(new DenseVectorStorage <double>(array.Length, array))));
 }
Beispiel #7
0
 public DenseVector(Vector <double> other)
     : this(DenseVectorStorage <double> .OfVector(other.Storage))
 {
 }
Beispiel #8
0
 public DenseVector(Vector <float> other)
     : this(DenseVectorStorage <float> .OfVector(other.Storage))
 {
 }
 public DenseVector(Vector <Complex32> other)
     : this(DenseVectorStorage <Complex32> .OfVector(other.Storage))
 {
 }