public final class Matrix
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
static double[] |
add(double[] w1,
double[] w2) |
static double[] |
divide(double[] x,
double[] w) |
static double |
dot(double[] x,
double[] w) |
static double[] |
multiply(double[] x,
double[] w) |
static void |
printMatrix(double[][] mat) |
static void |
printVector(double[] mat) |
static double[] |
scalarAddition(double[] x,
double y) |
static double[] |
scalarDivide(double[] x,
double y) |
static double[] |
scalarMultiply(double[] x,
double y) |
static double[] |
scalarMultiplyR(double[] x,
double y,
double[] result) |
static double[] |
sqrt(double[] x) |
static double[] |
subtract(double[] w1,
double[] w2) |
static double[] |
subtractR(double[] w1,
double[] w2,
double[] res) |
static double |
sum(double[] arr) |
public static double[] scalarMultiply(double[] x, double y)
public static double sum(double[] arr)
public static double[] scalarMultiplyR(double[] x, double y, double[] result)
public static double[] scalarDivide(double[] x, double y)
public static double[] scalarAddition(double[] x, double y)
public static double[] multiply(double[] x, double[] w) throws MatrixMultiplicationException
MatrixMultiplicationException
public static double[] divide(double[] x, double[] w) throws MatrixMultiplicationException
MatrixMultiplicationException
public static double[] sqrt(double[] x) throws MatrixMultiplicationException
MatrixMultiplicationException
public static double[] add(double[] w1, double[] w2) throws MatrixMultiplicationException
MatrixMultiplicationException
public static double[] subtract(double[] w1, double[] w2) throws MatrixMultiplicationException
MatrixMultiplicationException
public static double[] subtractR(double[] w1, double[] w2, double[] res) throws MatrixMultiplicationException
MatrixMultiplicationException
public static double dot(double[] x, double[] w) throws MatrixMultiplicationException
MatrixMultiplicationException
public static void printVector(double[] mat)
public static void printMatrix(double[][] mat)