public class IVector extends Object
Modifier and Type | Field and Description |
---|---|
double[] |
imagvector
The imaginary part of this vector
|
double[] |
realvector
The real part of this vector
|
int |
size
Size of this vector
|
Constructor and Description |
---|
IVector(int size)
Constructs a vector with "size"-elements
|
Modifier and Type | Method and Description |
---|---|
IVector |
add(IVector b)
Addition from two vectors
|
void |
add(IVector b,
IVector result)
Addition from two vectors
|
Complex |
dot(IVector b)
Multiplication from two vectors
|
IVector |
duplicate()
Copy a vector
|
void |
duplicate(IVector result)
Copy a vector
|
int |
getSize()
Return the size from this vector
|
IVector |
mul(double b)
Multiplication from a vectors with an double
|
void |
mul(double b,
IVector result)
Multiplication from a vectors with an double
|
void |
reshape(int newsize)
Resize this vector
|
IVector |
sub(IVector b)
Subtraction from two vectors
|
void |
sub(IVector b,
IVector result)
Subtraction from two vectors
|
String |
toString()
Return a vector as a string
|
public double[] realvector
public double[] imagvector
public int size
public int getSize()
public IVector mul(double b)
public void mul(double b, IVector result)
public IVector duplicate()
public void duplicate(IVector result)
public void reshape(int newsize)
Copyright © 2022. All rights reserved.