private z_axpy ( int n, System.Numerics.Complex alpha, System.Numerics.Complex x, [ y ) : void | ||
n | int | |
alpha | System.Numerics.Complex | |
x | System.Numerics.Complex | |
y | [ | |
return | void |
public override void AddVectorToScaledVector(Complex[] y, Complex alpha, Complex[] x, Complex[] result) { if (y == null) { throw new ArgumentNullException("y"); } if (x == null) { throw new ArgumentNullException("x"); } if (y.Length != x.Length) { throw new ArgumentException(Resources.ArgumentVectorsSameLength); } if (!ReferenceEquals(y, result)) { Array.Copy(y, 0, result, 0, y.Length); } if (alpha == Complex.Zero) { return; } SafeNativeMethods.z_axpy(y.Length, alpha, x, result); }
public override void AddVectorToScaledVector(Complex[] y, Complex alpha, Complex[] x, Complex[] result) { if (y == null) { throw new ArgumentNullException(nameof(y)); } if (x == null) { throw new ArgumentNullException(nameof(x)); } if (y.Length != x.Length) { throw new ArgumentException("All vectors must have the same dimensionality."); } if (!ReferenceEquals(y, result)) { Array.Copy(y, 0, result, 0, y.Length); } if (alpha == Complex.Zero) { return; } SafeNativeMethods.z_axpy(y.Length, alpha, x, result); }