|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectutil.VA
public abstract class VA
This class provides basic vector calculus used in the whole project
Constructor Summary | |
---|---|
VA()
|
Method Summary | |
---|---|
static double[] |
add1(double[] a,
double[] b)
c = a + b |
static void |
add2(double[] a,
double[] b)
a += b |
static double[] |
add3(double[] a,
double b)
c = a + b where b is a scalar |
static void |
add4(double[] a,
double b)
a += b where b is a scalar |
static double[] |
div1(double[] a,
double[] b)
component wise division c = a ./ b |
static double[] |
div2(double[] a,
double b)
c = a / b where b is a scalar |
static void |
div3(double[] a,
double b)
a /= b where b is a scalar |
static void |
div4(double[] a,
double[] b)
a /= b component wise |
static double |
mul1(double[] a,
double[] b)
c = dot-product(a, b) |
static double[] |
mul2(double[] a,
double[] b)
component wise multiplication c = a .* b |
static double[][] |
mul3(double[] a,
double[] b)
C = a^T a |
static double[] |
mul4(double[] a,
double b)
c = a * b where b is a scalar |
static void |
mul5(double[] a,
double b)
a *= b where b is a scalar |
static void |
mul6(double[] a,
double[] b)
a *= b component wise |
static double |
norm1(double[] v)
|v| |
static double |
norm2(double[] v)
||v||^2 |
static double[] |
sub1(double[] a,
double[] b)
c = a - b |
static void |
sub2(double[] a,
double[] b)
a -= b |
static double[] |
sub3(double[] a,
double b)
c = a - b where b is a scalar |
static void |
sub4(double[] a,
double b)
a -= b where b is a scalar |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VA()
Method Detail |
---|
public static double[] add1(double[] a, double[] b)
public static void add2(double[] a, double[] b)
public static double[] add3(double[] a, double b)
public static void add4(double[] a, double b)
public static double[] div1(double[] a, double[] b)
public static double[] div2(double[] a, double b)
public static void div3(double[] a, double b)
public static void div4(double[] a, double[] b)
public static double mul1(double[] a, double[] b)
public static double[] mul2(double[] a, double[] b)
public static double[][] mul3(double[] a, double[] b)
public static double[] mul4(double[] a, double b)
public static void mul5(double[] a, double b)
public static void mul6(double[] a, double[] b)
public static double norm1(double[] v)
public static double norm2(double[] v)
public static double[] sub1(double[] a, double[] b)
public static void sub2(double[] a, double[] b)
public static double[] sub3(double[] a, double b)
public static void sub4(double[] a, double b)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |