Interface BasicDoubleCalculations

    • Method Detail

      • plus

        Matrix plus​(double value)
        Adds a specified value to all entries in the matrix.
        Parameters:
        value - the value to add
        Returns:
        Matrix with the entries plus the value
      • plus

        Matrix plus​(Matrix matrix)
        Calculates the sum of the entries in both matrices
        Parameters:
        matrix - The matrix to add
        Returns:
        matrix with sum values
      • minus

        Matrix minus​(double value)
        Subtracts a specified value from all entries in the matrix.
        Parameters:
        value - the value to subtract
        Returns:
        Matrix with the entries minus the value
      • minus

        Matrix minus​(Calculation.Ret returnType,
                     boolean ignoreNaN,
                     double value)
        Subtracts a specified value from all entries in the matrix.
        Parameters:
        returnType - Defines if a new Matrix or a link should be returned.
        ignoreNaN - should missing values be ignored
        value - the value to subtract
        Returns:
        Matrix with the entries minus the value
      • minus

        Matrix minus​(Calculation.Ret returnType,
                     boolean ignoreNaN,
                     Matrix matrix)
        Calculates the difference of the entries in both matrices
        Parameters:
        returnType - Defines if a new Matrix or a link should be returned.
        ignoreNaN - should missing values be ignored
        matrix - The matrix to subtract
        Returns:
        matrix with difference values
      • plus

        Matrix plus​(Calculation.Ret returnType,
                    boolean ignoreNaN,
                    double value)
        Adds a specified value from all entries in the matrix.
        Parameters:
        returnType - Defines if a new Matrix or a link should be returned.
        ignoreNaN - should missing values be ignored
        value - the value to subtract
        Returns:
        Matrix with the entries plus the value
      • plus

        Matrix plus​(Calculation.Ret returnType,
                    boolean ignoreNaN,
                    Matrix matrix)
        Calculates the sum of the entries in both matrices
        Parameters:
        returnType - Defines if a new Matrix or a link should be returned.
        ignoreNaN - should missing values be ignored
        matrix - The matrix to subtract
        Returns:
        matrix with sum values
      • minus

        Matrix minus​(Matrix matrix)
        Calculates the difference of the entries in both matrices
        Parameters:
        matrix - The matrix to subtract
        Returns:
        matrix with difference values
      • times

        Matrix times​(Matrix matrix)
        Calculates the entrywise product of the two matrices.
        Parameters:
        matrix - the second matrix
        Returns:
        matrix with product of all entries
      • times

        Matrix times​(double value)
        Multiplies every entry in the matrix with a scalar.
        Parameters:
        value - factor to multiply with
        Returns:
        Matrix with all entries multiplied by a factor.
      • times

        Matrix times​(Calculation.Ret returnType,
                     boolean ignoreNaN,
                     double value)
        Multiplies every entry in the matrix with a scalar.
        Parameters:
        returnType - Defines if a new Matrix or a link should be returned.
        ignoreNaN - should missing values be ignored
        value - factor to multiply with
        Returns:
        Matrix with all entries multiplied by a factor.
      • times

        Matrix times​(Calculation.Ret returnType,
                     boolean ignoreNaN,
                     Matrix value)
        Multiplies every entry in the matrix with the entries of another Matrix.
        Parameters:
        returnType - Defines if a new Matrix or a link should be returned.
        ignoreNaN - should missing values be ignored
        value - factor to multiply with
        Returns:
        Matrix with all entries multiplied by a factor.
      • divide

        Matrix divide​(Matrix matrix)
        Calculates an entrywise division of the two matrices.
        Parameters:
        matrix - the second matrix
        Returns:
        matrix with all entries divided by the second matrix's entry.
      • divide

        Matrix divide​(double value)
        Divides every entry in the matrix by a scalar.
        Parameters:
        value - factor by which to divide
        Returns:
        Matrix with all entries divided by a factor.
      • divide

        Matrix divide​(Calculation.Ret returnType,
                      boolean ignoreNaN,
                      double value)
        Divides every entry in the matrix by a scalar.
        Parameters:
        returnType - Defines if a new Matrix or a link should be returned.
        ignoreNaN - should missing values be ignored
        value - factor by which to divide
        Returns:
        Matrix with all entries divided by a factor.
      • divide

        Matrix divide​(Calculation.Ret returnType,
                      boolean ignoreNaN,
                      Matrix value)
        Divides every entry in the matrix by the entries of another matrix.
        Parameters:
        returnType - Defines if a new Matrix or a link should be returned.
        ignoreNaN - should missing values be ignored
        value - factor by which to divide
        Returns:
        Matrix with all entries divided by a factor.
      • mtimes

        Matrix mtimes​(Matrix matrix)
        Performs a matrix multiplication on the two matrices. The matrices must be 2-dimensional and have the correct size.
        Parameters:
        matrix - the second matrix
        Returns:
        Matrix product
      • mtimes

        Matrix mtimes​(Calculation.Ret returnType,
                      boolean ignoreNaN,
                      Matrix matrix)
        Performs a matrix multiplication on the two matrices. The matrices must be 2-dimensional and have the correct size.
        Parameters:
        returnType - Defines if a new Matrix or a link should be returned.
        ignoreNaN - should missing values be ignored
        matrix - the second matrix
        Returns:
        Matrix product
      • atimes

        Matrix atimes​(Calculation.Ret returnType,
                      boolean ignoreNaN,
                      Matrix matrix)
        Performs an averaging matrix multiplication on the two matrices. The matrices must be 2-dimensional and have the correct size.
        Parameters:
        returnType - Defines if a new Matrix or a link should be returned.
        ignoreNaN - should missing values be ignored
        matrix - the second matrix
        Returns:
        Matrix product