# Functions
Abs returns the absolute value of x.
AssertMatrixEquals tests whether expected is equal to actual; if not, T.Error or T.Errorf are called, providing useful information.
AssertMatrixInDelta tests whether expected and actual have the same shape and all elements at the same positions are within delta; if not, T.Error or T.Errorf are called, providing useful information.
Ceil returns the least integer value greater than or equal to x.
ConcatV concatenates two or more vectors "vertically", creating a new Dense column vector.
Cos returns the cosine of the radian argument x.
Cosh returns the hyperbolic cosine of x.
Data returns the underlying data of the matrix, as a raw one-dimensional slice of values in row-major order.
Equal reports whether matrices a and b have the same shape and elements.
Exp returns e**x, the base-e exponential of x.
Floor returns the greatest integer value less than or equal to x.
InDelta reports whether matrices a and b have the same shape and all elements at the same positions are within delta.
Inf returns positive infinity if sign >= 0, negative infinity if sign < 0.
IsInf reports whether f is an infinity, according to sign.
IsScalar returns whether the matrix contains exactly one scalar value (dimensions 1×1).
IsVector returns whether the matrix is either a row or column vector (dimensions N×1 or 1×N).
Log returns the natural logarithm of x.
Max returns the larger of x or y.
NaN returns an IEEE 754 “not-a-number” value.
Pi mathematical constant.
Pow returns x**y, the base-x exponential of y.
RequireMatrixEquals tests whether expected is equal to actual; if not, T.Error or T.Errorf are called, providing useful information, followed by T.FailNow.
RequireMatrixInDelta tests whether expected and actual have the same shape and all elements at the same positions are within delta; if not, T.Error or T.Errorf are called, providing useful information, followed by T.FailNow.
Round returns the nearest integer, rounding half away from zero.
SameDims reports whether the two matrices have the same dimensions.
SetData sets the content of the matrix, copying the given raw data representation as one-dimensional slice.
Sin returns the sine of the radian argument x.
Sinh returns the hyperbolic sine of x.
SmallestNonzero returns the smallest positive, non-zero value representable by the type.
Sqrt returns the square root of x.
Stack stacks two or more vectors of the same size on top of each other, creating a new Dense matrix where each row contains the data of each input vector.
Tan returns the tangent of the radian argument x.
Tanh returns the hyperbolic tangent of x.
# Interfaces
The Matrix interface defines set and get methods to access its elements, plus a few variants to perform linear algebra operations with other matrices, such as element-wise addition, subtraction, product and matrix-matrix multiplication.
T requires a subset of methods from testing.TB.
Tensor represents an interface for a generic tensor.