Klasse CudaMatrixArithmetic

java.lang.Object
de.edux.core.math.matrix.cuda.CudaMatrixArithmetic
Alle implementierten Schnittstellen:
IMatrixArithmetic, IMatrixProduct, IMatrixVectorProduct

public class CudaMatrixArithmetic extends Object implements IMatrixArithmetic
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    double[]
    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.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • CudaMatrixArithmetic

      public CudaMatrixArithmetic()
  • Methodendetails

    • multiply

      public double[][] multiply(double[][] matrixA, double[][] matrixB)
      Beschreibung aus Schnittstelle kopiert: IMatrixProduct
      Multiplies two matrices together and returns the result as a new matrix.
      Angegeben von:
      multiply in Schnittstelle IMatrixProduct
      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: IMatrixVectorProduct
      Multiplies 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:
      multiply in Schnittstelle IMatrixVectorProduct
      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.