コード例 #1
0
 /// <summary>
 /// Computes the exponential of a vector pointwise
 /// </summary>
 /// <param name="x">The input vector</param>
 /// <returns></returns>
 public static Vector <T> Exp(Vector <T> x)
 {
     return(x.PointwiseUnary(x.DoPointwiseExp));
 }
コード例 #2
0
 /// <summary>
 /// Computes the log of a vector pointwise
 /// </summary>
 /// <param name="x">The input vector</param>
 /// <returns></returns>
 public static Vector <T> Log(Vector <T> x)
 {
     return(x.PointwiseUnary(x.PointwiseLog));
 }