|
|
@ -273,13 +273,13 @@ namespace MathNet.Numerics.LinearAlgebra |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Computes the log of a vector pointwise
|
|
|
/// Computes the sqrt of a vector pointwise
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
public static Vector<T> Log(Vector<T> x) |
|
|
public static Vector<T> Sqrt(Vector<T> x) |
|
|
{ |
|
|
{ |
|
|
return x.PointwiseUnary(x.PointwiseLog); |
|
|
return x.PointwiseSqrt(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
@ -293,153 +293,152 @@ namespace MathNet.Numerics.LinearAlgebra |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Computes the absolute value of a vector pointwise
|
|
|
/// Computes the log of a vector pointwise
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
public static Vector<T> Abs(Vector<T> x) |
|
|
public static Vector<T> Log(Vector<T> x) |
|
|
{ |
|
|
{ |
|
|
return x.PointwiseAbs(); |
|
|
return x.PointwiseUnary(x.PointwiseLog); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Computes the acos of a vector pointwise
|
|
|
/// Computes the log10 of a vector pointwise
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
public static Vector<T> Acos(Vector<T> x) |
|
|
public static Vector<T> Log10(Vector<T> x) |
|
|
{ |
|
|
{ |
|
|
return x.PointwiseAcos(); |
|
|
return x.PointwiseLog10(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Computes the asin of a vector pointwise
|
|
|
/// Computes the sin of a vector pointwise
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
public static Vector<T> Asin(Vector<T> x) |
|
|
public static Vector<T> Sin(Vector<T> x) |
|
|
{ |
|
|
{ |
|
|
return x.PointwiseAsin(); |
|
|
return x.PointwiseSin(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Computes the atan of a vector pointwise
|
|
|
/// Computes the cos of a vector pointwise
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
public static Vector<T> Atan(Vector<T> x) |
|
|
public static Vector<T> Cos(Vector<T> x) |
|
|
{ |
|
|
{ |
|
|
return x.PointwiseAtan(); |
|
|
return x.PointwiseCos(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Computes the ceiling of a vector pointwise
|
|
|
/// Computes the tan of a vector pointwise
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
public static Vector<T> Ceiling(Vector<T> x) |
|
|
public static Vector<T> Tan(Vector<T> x) |
|
|
{ |
|
|
{ |
|
|
return x.PointwiseCeiling(); |
|
|
return x.PointwiseTan(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Computes the cos of a vector pointwise
|
|
|
/// Computes the asin of a vector pointwise
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
public static Vector<T> Cos(Vector<T> x) |
|
|
public static Vector<T> Asin(Vector<T> x) |
|
|
{ |
|
|
{ |
|
|
return x.PointwiseCos(); |
|
|
return x.PointwiseAsin(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Computes the cosh of a vector pointwise
|
|
|
/// Computes the acos of a vector pointwise
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
public static Vector<T> Cosh(Vector<T> x) |
|
|
public static Vector<T> Acos(Vector<T> x) |
|
|
{ |
|
|
{ |
|
|
return x.PointwiseCosh(); |
|
|
return x.PointwiseAcos(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Computes the floor of a vector pointwise
|
|
|
/// Computes the atan of a vector pointwise
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
public static Vector<T> Floor(Vector<T> x) |
|
|
public static Vector<T> Atan(Vector<T> x) |
|
|
{ |
|
|
{ |
|
|
return x.PointwiseFloor(); |
|
|
return x.PointwiseAtan(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Computes the log10 of a vector pointwise
|
|
|
/// Computes the sinh of a vector pointwise
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
public static Vector<T> Log10(Vector<T> x) |
|
|
public static Vector<T> Sinh(Vector<T> x) |
|
|
{ |
|
|
{ |
|
|
return x.PointwiseLog10(); |
|
|
return x.PointwiseSinh(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Computes the rounded value of a vector pointwise
|
|
|
/// Computes the cosh of a vector pointwise
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
public static Vector<T> Round(Vector<T> x) |
|
|
public static Vector<T> Cosh(Vector<T> x) |
|
|
{ |
|
|
{ |
|
|
return x.PointwiseRound(); |
|
|
return x.PointwiseCosh(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Computes the sin of a vector pointwise
|
|
|
/// Computes the tanh of a vector pointwise
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
public static Vector<T> Sin(Vector<T> x) |
|
|
public static Vector<T> Tanh(Vector<T> x) |
|
|
{ |
|
|
{ |
|
|
return x.PointwiseSin(); |
|
|
return x.PointwiseTanh(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Computes the sinh of a vector pointwise
|
|
|
/// Computes the absolute value of a vector pointwise
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
public static Vector<T> Sinh(Vector<T> x) |
|
|
public static Vector<T> Abs(Vector<T> x) |
|
|
{ |
|
|
{ |
|
|
return x.PointwiseSinh(); |
|
|
return x.PointwiseAbs(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Computes the sqrt of a vector pointwise
|
|
|
/// Computes the floor of a vector pointwise
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
public static Vector<T> Sqrt(Vector<T> x) |
|
|
public static Vector<T> Floor(Vector<T> x) |
|
|
{ |
|
|
{ |
|
|
return x.PointwiseSqrt(); |
|
|
return x.PointwiseFloor(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Computes the tan of a vector pointwise
|
|
|
/// Computes the ceiling of a vector pointwise
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
public static Vector<T> Tan(Vector<T> x) |
|
|
public static Vector<T> Ceiling(Vector<T> x) |
|
|
{ |
|
|
{ |
|
|
return x.PointwiseTan(); |
|
|
return x.PointwiseCeiling(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Computes the tanh of a vector pointwise
|
|
|
/// Computes the rounded value of a vector pointwise
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <param name="x">The input vector</param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
public static Vector<T> Tanh(Vector<T> x) |
|
|
public static Vector<T> Round(Vector<T> x) |
|
|
{ |
|
|
{ |
|
|
return x.PointwiseTanh(); |
|
|
return x.PointwiseRound(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|