|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmali.number.matrix.TupleNrad<T>
public class TupleNrad<T extends TupleNrad<T>>
| Field Summary | |
|---|---|
protected int |
roTrick
|
protected Radical1[] |
values
|
| Constructor Summary | |
|---|---|
protected |
TupleNrad(boolean readOnly,
int n)
Creates a new TupleNf instance. |
protected |
TupleNrad(boolean readOnly,
Radical1[] values,
int n)
Creates a new TupleNf instance. |
protected |
TupleNrad(boolean readOnly,
Radical1[] values,
int n,
boolean copy)
Creates a new TupleNf instance. |
protected |
TupleNrad(boolean readOnly,
TupleNrad<?> that)
Creates a new Tuple3f instance. |
|
TupleNrad(int n)
Creates a new TupleNf instance. |
|
TupleNrad(Radical1[] values,
int n)
Creates a new TupleNf instance. |
|
TupleNrad(Radical1[] values,
int n,
boolean copy)
Creates a new TupleNf instance. |
|
TupleNrad(TupleNrad<?> that)
Creates a new Tuple3f instance. |
| Method Summary | |
|---|---|
void |
absolute()
Sets each component of the tuple parameter to its absolute value and places the modified values into this tuple. |
void |
absolute(T tuple)
Sets each component of the tuple parameter to its absolute value and places the modified values into this tuple. |
void |
add(int i,
Radical1 v)
Adds v to this tuple's i'th value. |
void |
add(T tuple2)
Sets the value of this tuple to the vector sum of itself and tuple t1. |
void |
add(T tuple1,
T tuple2)
Sets the value of this tuple to the vector sum of tuples t1 and t2. |
void |
div(int i,
Radical1 v)
Divides this tuple's i'th value by v. |
void |
div(Radical1 v)
Divides all components of this tuple by v. |
Radical1 |
dot(Tuple3rad other,
Radical1 passback)
|
boolean |
equals(java.lang.Object obj)
|
void |
fill(Radical1 value)
Sets all values of this TupleNf to f. |
Radical1 |
get(int i,
Radical1 passback)
Sets the i-th value of this tuple. |
void |
get(TupleNrad<?> buffer)
Writes all values of this Tuple to the specified buffer. |
Radical1 |
getReference(int index)
|
int |
getSize()
|
int |
hashCode()
|
boolean |
isReadOnly()
|
void |
mul(int i,
Radical1 v)
Multiplies v to this tuple's i'th value. |
void |
mul(Radical1 v)
Multiplies all components of this tuple with v. |
void |
negate()
Negates the value of this vector in place. |
void |
negate(T tuple)
Sets the value of this tuple to the negation of tuple that. |
void |
scale(Rational factor)
Sets the value of this tuple to the scalar multiplication of itself. |
void |
scale(Rational factor,
T tuple)
Sets the value of this tuple to the scalar multiplication of tuple t1. |
void |
set(int i,
Radical1 v)
Sets the i-th value of this tuple. |
void |
set(Radical1[] values)
Sets all values of this Tuple to the specified ones. |
void |
set(TupleNrad<?> tuple)
Sets all three values of this Tuple to the specified ones. |
void |
setZero()
Sets all components to zero. |
void |
sub(int i,
Radical1 v)
Subtracts v of this tuple's i'th value. |
void |
sub(T tuple2)
Sets the value of this tuple to the vector difference of itself and tuple t1 (this = this - t1). |
void |
sub(T tuple1,
T tuple2)
Sets the value of this tuple to the vector difference of tuple t1 and t2 (this = t1 - t2). |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Radical1[] values
protected final int roTrick
| Constructor Detail |
|---|
protected TupleNrad(boolean readOnly,
int n)
readOnly - n - the number of elements
protected TupleNrad(boolean readOnly,
Radical1[] values,
int n,
boolean copy)
readOnly - values - the values array (must be at least size 3)n - the number of elementscopy - copy the array?
protected TupleNrad(boolean readOnly,
Radical1[] values,
int n)
readOnly - values - the values array (must be at least size n)n - the number of elements to copy
protected TupleNrad(boolean readOnly,
TupleNrad<?> that)
readOnly - that - the TupleNf to copy the values frompublic TupleNrad(int n)
n - the number of elements
public TupleNrad(Radical1[] values,
int n,
boolean copy)
values - the values array (must be at least size 3)n - the number of elementscopy - copy the array?
public TupleNrad(Radical1[] values,
int n)
values - the values array (must be at least size n)n - the number of elements to copypublic TupleNrad(TupleNrad<?> that)
that - the TupleNf to copy the values from| Method Detail |
|---|
public final boolean isReadOnly()
public final int getSize()
public final void set(int i,
Radical1 v)
public final Radical1 get(int i,
Radical1 passback)
public final Radical1 getReference(int index)
index -
public final void fill(Radical1 value)
value - the value
public final void add(int i,
Radical1 v)
i - the index of the value to modifyv - modification amount
public final void sub(int i,
Radical1 v)
i - the index of the value to modifyv - modification amount
public final void mul(int i,
Radical1 v)
i - the index of the value to modifyv - modification amountpublic final void mul(Radical1 v)
v - modification amount
public Radical1 dot(Tuple3rad other,
Radical1 passback)
public final void div(int i,
Radical1 v)
i - the index of the value to modifyv - modification amountpublic final void div(Radical1 v)
v - modification amountpublic void set(Radical1[] values)
values - the values array (must be at least size getSize())public final void set(TupleNrad<?> tuple)
tuple - the tuple to be copiedpublic void get(TupleNrad<?> buffer)
buffer - the buffer array to write the values topublic final void setZero()
public final void negate()
public final void negate(T tuple)
tuple - the source vectorpublic final void absolute()
public final void absolute(T tuple)
tuple - the source tuple, which will not be modified
public final void add(T tuple1,
T tuple2)
tuple1 - the first tupletuple2 - the second tuplepublic final void add(T tuple2)
tuple2 - the other tuple
public final void sub(T tuple1,
T tuple2)
tuple1 - the first tupletuple2 - the second tuplepublic final void sub(T tuple2)
tuple2 - the other tuple
public final void scale(Rational factor,
T tuple)
factor - the scalar valuetuple - the source tuplepublic final void scale(Rational factor)
factor - the scalar valuepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||