#include <mvecml.h> void vmlsmht(int n, double *restrict y, int incy, double a, double b, double c, double d, const double *restrict x, int incx); void vmlsmhtf(int n, float *restrict y, int incy, float a, float b, float c, float d, const float *restrict x, int incx); void vmlsmht_64(long n, double *restrict y, long incy, double a, double b, double c, double d, const double *restrict x, long incx); void vmlsmhtf_64(long n, float *restrict y, long incy, float a, float b, float c, float d, const float *restrict x, long incx);
Given an input vector , a result vector
and constants
and
this function computes the Soboleva modified hyperbolic
tangent (SMHT) activation function of the values in the
vector and stores the result in the
vector.
ENTRY: Number of elements of and
.
CONSTRAINT: .
EXIT: Result vector .
CONSTRAINT: Must contain elements.
CONSTRAINT: Must not overlap with array .
ENTRY: Stride for the vector .
CONSTRAINT: .
BEHAVIOR: A negative stride will traverse the array in reverse.
ENTRY: Constant .
ENTRY: Constant .
ENTRY: Constant .
ENTRY: Constant .
ENTRY: Input vector .
CONSTRAINT: Must contain elements.
CONSTRAINT: Must not overlap with array .
ENTRY: Stride for the vector .
CONSTRAINT: .
BEHAVIOR: A negative stride will traverse the array in reverse.