Skip to content

Commit 5ed0597

Browse files
authored
Merge pull request #549 from jnyrup/typos
Fix typos
2 parents 1af6254 + 8344136 commit 5ed0597

105 files changed

Lines changed: 296 additions & 296 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Numerics/Complex32.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,9 +1167,9 @@ public static implicit operator Complex32(sbyte value)
11671167
}
11681168

11691169
/// <summary>
1170-
/// Implicit conversion of a unsgined real short to a <c>Complex32</c>.
1170+
/// Implicit conversion of a unsigned real short to a <c>Complex32</c>.
11711171
/// </summary>
1172-
/// <param name="value">The unsgined short value to convert.</param>
1172+
/// <param name="value">The unsigned short value to convert.</param>
11731173
/// <returns>The result of the conversion.</returns>
11741174
[CLSCompliant(false)]
11751175
public static implicit operator Complex32(ushort value)

src/Numerics/Complex64.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,9 +838,9 @@ public static implicit operator Complex(sbyte value)
838838
}
839839

840840
/// <summary>
841-
/// Implicit conversion of a unsgined real short to a <c>Complex</c>.
841+
/// Implicit conversion of a unsigned real short to a <c>Complex</c>.
842842
/// </summary>
843-
/// <param name="value">The unsgined short value to convert.</param>
843+
/// <param name="value">The unsigned short value to convert.</param>
844844
/// <returns>The result of the conversion.</returns>
845845
[CLSCompliant(false)]
846846
public static implicit operator Complex(ushort value)

src/Numerics/ComplexExtensions.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static class ComplexExtensions
4848
/// <summary>
4949
/// Gets the squared magnitude of the <c>Complex</c> number.
5050
/// </summary>
51-
/// <param name="complex">The <see cref="Complex32"/> number to perfom this operation on.</param>
51+
/// <param name="complex">The <see cref="Complex32"/> number to perform this operation on.</param>
5252
/// <returns>The squared magnitude of the <c>Complex</c> number.</returns>
5353
public static double MagnitudeSquared(this Complex32 complex)
5454
{
@@ -58,7 +58,7 @@ public static double MagnitudeSquared(this Complex32 complex)
5858
/// <summary>
5959
/// Gets the squared magnitude of the <c>Complex</c> number.
6060
/// </summary>
61-
/// <param name="complex">The <see cref="Complex"/> number to perfom this operation on.</param>
61+
/// <param name="complex">The <see cref="Complex"/> number to perform this operation on.</param>
6262
/// <returns>The squared magnitude of the <c>Complex</c> number.</returns>
6363
public static double MagnitudeSquared(this Complex complex)
6464
{
@@ -104,7 +104,7 @@ public static Complex Sign(this Complex complex)
104104
/// <summary>
105105
/// Gets the conjugate of the <c>Complex</c> number.
106106
/// </summary>
107-
/// <param name="complex">The <see cref="Complex"/> number to perfom this operation on.</param>
107+
/// <param name="complex">The <see cref="Complex"/> number to perform this operation on.</param>
108108
/// <remarks>
109109
/// The semantic of <i>setting the conjugate</i> is such that
110110
/// <code>
@@ -136,7 +136,7 @@ public static Complex Reciprocal(this Complex complex)
136136
/// <summary>
137137
/// Exponential of this <c>Complex</c> (exp(x), E^x).
138138
/// </summary>
139-
/// <param name="complex">The <see cref="Complex"/> number to perfom this operation on.</param>
139+
/// <param name="complex">The <see cref="Complex"/> number to perform this operation on.</param>
140140
/// <returns>
141141
/// The exponential of this complex number.
142142
/// </returns>
@@ -149,7 +149,7 @@ public static Complex Exp(this Complex complex)
149149
/// <summary>
150150
/// Natural Logarithm of this <c>Complex</c> (Base E).
151151
/// </summary>
152-
/// <param name="complex">The <see cref="Complex"/> number to perfom this operation on.</param>
152+
/// <param name="complex">The <see cref="Complex"/> number to perform this operation on.</param>
153153
/// <returns>
154154
/// The natural logarithm of this complex number.
155155
/// </returns>
@@ -182,7 +182,7 @@ public static Complex Log(this Complex complex, double baseValue)
182182
/// <summary>
183183
/// Raise this <c>Complex</c> to the given value.
184184
/// </summary>
185-
/// <param name="complex">The <see cref="Complex"/> number to perfom this operation on.</param>
185+
/// <param name="complex">The <see cref="Complex"/> number to perform this operation on.</param>
186186
/// <param name="exponent">
187187
/// The exponent.
188188
/// </param>
@@ -219,7 +219,7 @@ public static Complex Power(this Complex complex, Complex exponent)
219219
/// <summary>
220220
/// Raise this <c>Complex</c> to the inverse of the given value.
221221
/// </summary>
222-
/// <param name="complex">The <see cref="Complex"/> number to perfom this operation on.</param>
222+
/// <param name="complex">The <see cref="Complex"/> number to perform this operation on.</param>
223223
/// <param name="rootExponent">
224224
/// The root exponent.
225225
/// </param>
@@ -234,7 +234,7 @@ public static Complex Root(this Complex complex, Complex rootExponent)
234234
/// <summary>
235235
/// The Square (power 2) of this <c>Complex</c>
236236
/// </summary>
237-
/// <param name="complex">The <see cref="Complex"/> number to perfom this operation on.</param>
237+
/// <param name="complex">The <see cref="Complex"/> number to perform this operation on.</param>
238238
/// <returns>
239239
/// The square of this complex number.
240240
/// </returns>
@@ -251,7 +251,7 @@ public static Complex Square(this Complex complex)
251251
/// <summary>
252252
/// The Square Root (power 1/2) of this <c>Complex</c>
253253
/// </summary>
254-
/// <param name="complex">The <see cref="Complex"/> number to perfom this operation on.</param>
254+
/// <param name="complex">The <see cref="Complex"/> number to perform this operation on.</param>
255255
/// <returns>
256256
/// The square root of this complex number.
257257
/// </returns>
@@ -324,7 +324,7 @@ public static Tuple<Complex, Complex, Complex> CubicRoots(this Complex complex)
324324
/// <summary>
325325
/// Gets a value indicating whether the <c>Complex32</c> is zero.
326326
/// </summary>
327-
/// <param name="complex">The <see cref="Complex"/> number to perfom this operation on.</param>
327+
/// <param name="complex">The <see cref="Complex"/> number to perform this operation on.</param>
328328
/// <returns><c>true</c> if this instance is zero; otherwise, <c>false</c>.</returns>
329329
public static bool IsZero(this Complex complex)
330330
{
@@ -334,7 +334,7 @@ public static bool IsZero(this Complex complex)
334334
/// <summary>
335335
/// Gets a value indicating whether the <c>Complex32</c> is one.
336336
/// </summary>
337-
/// <param name="complex">The <see cref="Complex"/> number to perfom this operation on.</param>
337+
/// <param name="complex">The <see cref="Complex"/> number to perform this operation on.</param>
338338
/// <returns><c>true</c> if this instance is one; otherwise, <c>false</c>.</returns>
339339
public static bool IsOne(this Complex complex)
340340
{
@@ -345,7 +345,7 @@ public static bool IsOne(this Complex complex)
345345
/// Gets a value indicating whether the <c>Complex32</c> is the imaginary unit.
346346
/// </summary>
347347
/// <returns><c>true</c> if this instance is ImaginaryOne; otherwise, <c>false</c>.</returns>
348-
/// <param name="complex">The <see cref="Complex"/> number to perfom this operation on.</param>
348+
/// <param name="complex">The <see cref="Complex"/> number to perform this operation on.</param>
349349
public static bool IsImaginaryOne(this Complex complex)
350350
{
351351
return complex.Real == 0.0 && complex.Imaginary == 1.0;
@@ -355,7 +355,7 @@ public static bool IsImaginaryOne(this Complex complex)
355355
/// Gets a value indicating whether the provided <c>Complex32</c>evaluates
356356
/// to a value that is not a number.
357357
/// </summary>
358-
/// <param name="complex">The <see cref="Complex"/> number to perfom this operation on.</param>
358+
/// <param name="complex">The <see cref="Complex"/> number to perform this operation on.</param>
359359
/// <returns>
360360
/// <c>true</c> if this instance is <c>NaN</c>; otherwise,
361361
/// <c>false</c>.
@@ -369,7 +369,7 @@ public static bool IsNaN(this Complex complex)
369369
/// Gets a value indicating whether the provided <c>Complex32</c> evaluates to an
370370
/// infinite value.
371371
/// </summary>
372-
/// <param name="complex">The <see cref="Complex"/> number to perfom this operation on.</param>
372+
/// <param name="complex">The <see cref="Complex"/> number to perform this operation on.</param>
373373
/// <returns>
374374
/// <c>true</c> if this instance is infinite; otherwise, <c>false</c>.
375375
/// </returns>
@@ -385,7 +385,7 @@ public static bool IsInfinity(this Complex complex)
385385
/// <summary>
386386
/// Gets a value indicating whether the provided <c>Complex32</c> is real.
387387
/// </summary>
388-
/// <param name="complex">The <see cref="Complex"/> number to perfom this operation on.</param>
388+
/// <param name="complex">The <see cref="Complex"/> number to perform this operation on.</param>
389389
/// <returns><c>true</c> if this instance is a real number; otherwise, <c>false</c>.</returns>
390390
public static bool IsReal(this Complex complex)
391391
{
@@ -395,7 +395,7 @@ public static bool IsReal(this Complex complex)
395395
/// <summary>
396396
/// Gets a value indicating whether the provided <c>Complex32</c> is real and not negative, that is &gt;= 0.
397397
/// </summary>
398-
/// <param name="complex">The <see cref="Complex"/> number to perfom this operation on.</param>
398+
/// <param name="complex">The <see cref="Complex"/> number to perform this operation on.</param>
399399
/// <returns>
400400
/// <c>true</c> if this instance is real nonnegative number; otherwise, <c>false</c>.
401401
/// </returns>

src/Numerics/Constants.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public static class Constants
287287
/// <summary>Classical Electron Radius: [m] (2007 CODATA)</summary>
288288
public const double ClassicalElectronRadius = 2.8179402894e-15;
289289

290-
/// <summary>Tomson Cross Section: [m^2] (2002 CODATA)</summary>
290+
/// <summary>Thomson Cross Section: [m^2] (2002 CODATA)</summary>
291291
public const double ThomsonCrossSection = 0.6652458558e-28;
292292

293293
/// <summary>Electron Magnetic Moment: [J T^-1] (2007 CODATA)</summary>
@@ -462,4 +462,4 @@ public static class Constants
462462
public const double Yocto = 1e-24;
463463
#endregion
464464
}
465-
}
465+
}

src/Numerics/Control.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public static ILinearAlgebraProvider LinearAlgebraProvider
260260
}
261261

262262
/// <summary>
263-
/// Gets or sets the fourier transform provider. Consider to use UseNativeMKL or UseManaged instead.
263+
/// Gets or sets the Fourier transform provider. Consider to use UseNativeMKL or UseManaged instead.
264264
/// </summary>
265265
/// <value>The linear algebra provider.</value>
266266
public static IFourierTransformProvider FourierTransformProvider
@@ -313,7 +313,7 @@ public static int MaxDegreeOfParallelism
313313
public static TaskScheduler TaskScheduler { get; set; }
314314

315315
/// <summary>
316-
/// Gets or sets the the block size to use for
316+
/// Gets or sets the block size to use for
317317
/// the native linear algebra provider.
318318
/// </summary>
319319
/// <value>The block size. Default 512, must be at least 32.</value>

src/Numerics/Differentiation/FiniteDifferenceCoefficients.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public double[] GetCoefficients(int center, int order)
9595
/// Gets the finite difference coefficients for all orders at a specified center.
9696
/// </summary>
9797
/// <param name="center">Current function position with respect to coefficients. Must be within point range.</param>
98-
/// <returns>Rectangular array of coefficients, with columns specifing order.</returns>
98+
/// <returns>Rectangular array of coefficients, with columns specifying order.</returns>
9999
public double[,] GetCoefficientsForAllOrders(int center)
100100
{
101101
if (center >= _coefficients.Length)

src/Numerics/Differentiation/NumericalDerivative.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public enum StepType
5353
/// <summary>
5454
/// A base step size value, eps (typically machine precision), is scaled according to the finite difference coefficient order
5555
/// and function input parameter. The initial scaling according to finite different coefficient order can be thought of as producing a
56-
/// base step size, h, that is equivalent to <see cref="RelativeX"/> scaling. This stepsize is then scaled according to the function
56+
/// base step size, h, that is equivalent to <see cref="RelativeX"/> scaling. This step size is then scaled according to the function
5757
/// input parameter. Although implementation may vary, an example of second order accurate scaling may be (eps)^(1/3)*(1+abs(x)).
5858
/// </summary>
5959
Relative
@@ -101,7 +101,7 @@ public NumericalDerivative(int points, int center)
101101
}
102102

103103
/// <summary>
104-
/// Sets and gets the finite difference step size. This value is for each function evaluation if relative stepsize types are used.
104+
/// Sets and gets the finite difference step size. This value is for each function evaluation if relative step size types are used.
105105
/// If the base step size used in scaling is desired, see <see cref="Epsilon"/>.
106106
/// </summary>
107107
/// <remarks>
@@ -120,7 +120,7 @@ public double StepSize
120120
}
121121

122122
/// <summary>
123-
/// Sets and gets the base fininte difference step size. This assigned value to this parameter is only used if <see cref="StepType"/> is set to RelativeX.
123+
/// Sets and gets the base finite difference step size. This assigned value to this parameter is only used if <see cref="StepType"/> is set to RelativeX.
124124
/// However, if the StepType is Relative, it will contain the base step size computed from <see cref="Epsilon"/> based on the finite difference order.
125125
/// </summary>
126126
public double BaseStepSize

src/Numerics/Differentiation/NumericalHessian.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public double[] Evaluate(Func<double, double> f, double x)
7777
/// Evaluates the Hessian of a multivariate function f at points x.
7878
/// </summary>
7979
/// <remarks>
80-
/// This method of computing the Hessian is only vaid for Lipschitz continuous functions.
80+
/// This method of computing the Hessian is only valid for Lipschitz continuous functions.
8181
/// The function mirrors the Hessian along the diagonal since d2f/dxdy = d2f/dydx for continuously differentiable functions.
8282
/// </remarks>
8383
/// <param name="f">Multivariate function handle.></param>

src/Numerics/Distributions/Erlang.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace MathNet.Numerics.Distributions
3636
{
3737
/// <summary>
3838
/// Continuous Univariate Erlang distribution.
39-
/// This distribution is is a continuous probability distribution with wide applicability primarily due to its
39+
/// This distribution is a continuous probability distribution with wide applicability primarily due to its
4040
/// relation to the exponential and Gamma distributions.
4141
/// <a href="http://en.wikipedia.org/wiki/Erlang_distribution">Wikipedia - Erlang distribution</a>.
4242
/// </summary>

src/Numerics/Exceptions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected NumericalBreakdownException(System.Runtime.Serialization.Serialization
5757
}
5858

5959
/// <summary>
60-
/// An error occured calling native provider function.
60+
/// An error occurred calling native provider function.
6161
/// </summary>
6262
[Serializable]
6363
public abstract class NativeInterfaceException : Exception
@@ -84,7 +84,7 @@ protected NativeInterfaceException(System.Runtime.Serialization.SerializationInf
8484
}
8585

8686
/// <summary>
87-
/// An error occured calling native provider function.
87+
/// An error occurred calling native provider function.
8888
/// </summary>
8989
[Serializable]
9090
public class InvalidParameterException : NativeInterfaceException
@@ -112,7 +112,7 @@ protected InvalidParameterException(System.Runtime.Serialization.SerializationIn
112112
}
113113

114114
/// <summary>
115-
/// Native provider was unable to allocate sufficent memory.
115+
/// Native provider was unable to allocate sufficient memory.
116116
/// </summary>
117117
[Serializable]
118118
public class MemoryAllocationException : NativeInterfaceException

0 commit comments

Comments
 (0)