Package de.edux.core.math.matrix.cuda
Klasse CudaMatrixArithmetic
java.lang.Object
de.edux.core.math.matrix.cuda.CudaMatrixArithmetic
- Alle implementierten Schnittstellen:
IMatrixArithmetic,IMatrixProduct,IMatrixVectorProduct
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdouble[]multiply(double[][] matrix, double[] vector) Multiplies a matrix by a vector and returns the result as a new vector.double[][]multiply(double[][] matrixA, double[][] matrixB) Multiplies two matrices together and returns the result as a new matrix.
-
Konstruktordetails
-
CudaMatrixArithmetic
public CudaMatrixArithmetic()
-
-
Methodendetails
-
multiply
public double[][] multiply(double[][] matrixA, double[][] matrixB) Beschreibung aus Schnittstelle kopiert:IMatrixProductMultiplies two matrices together and returns the result as a new matrix.- Angegeben von:
multiplyin SchnittstelleIMatrixProduct- Parameter:
matrixA- The first matrix to be multiplied, represented as a 2D array of doubles.matrixB- The second matrix to be multiplied, represented as a 2D array of doubles.- Gibt zurück:
- The product of matrixA and matrixB, represented as a 2D array of doubles.
-
multiply
public double[] multiply(double[][] matrix, double[] vector) Beschreibung aus Schnittstelle kopiert:IMatrixVectorProductMultiplies a matrix by a vector and returns the result as a new vector.This method takes a two-dimensional array representing a matrix and a one-dimensional array representing a vector, performs the matrix-vector multiplication, and returns the resulting vector as a one-dimensional array.
- Angegeben von:
multiplyin SchnittstelleIMatrixVectorProduct- Parameter:
matrix- The matrix to be multiplied, represented as a 2D array of doubles. The number of columns in the matrix must match the size of the vector.vector- The vector to be multiplied, represented as a 1D array of doubles.- Gibt zurück:
- The product of the matrix and vector multiplication, represented as a 1D array of doubles.
-