LinearAlgebra.SparseColumnVector.SetSparsePattern C# (CSharp) Méthode

SetSparsePattern() public méthode

public SetSparsePattern ( int SourceKey ) : void
SourceKey int
Résultat void
		public void SetSparsePattern(int[] SourceKey)
		{
			if (SourceKey.Max()>Dim)
			{
				throw new Exception("The dimension of the SourceKey exceeds the original dimension of the sparse column vector.");
			}
			nNonzero = SourceKey.Length;
			Key = SourceKey;
			Val = new float[nNonzero];
		}