コード例 #1
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(Complex32[] array)
 {
     return(new DenseVector(DenseVectorStorage <Complex32> .OfVector(new DenseVectorStorage <Complex32>(array.Length, array))));
 }
コード例 #2
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 <Complex32> vector)
 {
     return(new DenseVector(DenseVectorStorage <Complex32> .OfVector(vector.Storage)));
 }
コード例 #3
0
ファイル: DenseVector.cs プロジェクト: kpboyle1/devtreks
 /// <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))));
 }
コード例 #4
0
ファイル: DenseVector.cs プロジェクト: kpboyle1/devtreks
 /// <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)));
 }
コード例 #5
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 <double> vector)
 {
     return(new DenseVector(DenseVectorStorage <double> .OfVector(vector.Storage)));
 }
コード例 #6
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(double[] array)
 {
     return(new DenseVector(DenseVectorStorage <double> .OfVector(new DenseVectorStorage <double>(array.Length, array))));
 }
コード例 #7
0
 public DenseVector(Vector <double> other)
     : this(DenseVectorStorage <double> .OfVector(other.Storage))
 {
 }
コード例 #8
0
 public DenseVector(Vector <float> other)
     : this(DenseVectorStorage <float> .OfVector(other.Storage))
 {
 }
コード例 #9
0
 public DenseVector(Vector <Complex32> other)
     : this(DenseVectorStorage <Complex32> .OfVector(other.Storage))
 {
 }