Documentation of 'mikera.matrixx.impl.ABooleanMatrix' Java class
ABooleanMatrix
mikera.matrixx.impl

Class ABooleanMatrix

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<INDArray>, java.lang.Iterable<AVector>, INDArray, IMatrix
    Direct Known Subclasses:
    PermutationMatrix


    public abstract class ABooleanMatrix
    extends ARectangularMatrix
    Abstract base class for matrices limited to boolean 0/1 values Such matrices allow for various efficient representations
    See Also:
    Serialized Form
    • Method Detail

      • isBoolean

        public boolean isBoolean()
        Description copied from interface: INDArray
        Returns true if the array is boolean (contains only 0.0 or 1.0 values)
        Specified by:
        isBoolean in interface INDArray
        Overrides:
        isBoolean in class AMatrix
      • isFullyMutable

        public boolean isFullyMutable()
        Description copied from interface: INDArray
        If this method returns true, the INDArray is guaranteed to be fully mutable in all positions i.e. every position can store any valid double value
        Specified by:
        isFullyMutable in interface INDArray
        Specified by:
        isFullyMutable in class AMatrix
      • elementMax

        public double elementMax()
        Description copied from interface: INDArray
        Returns the maximum element value in this array. Throws an error if there are no elements.
        Specified by:
        elementMax in interface INDArray
        Overrides:
        elementMax in class AbstractArray<AVector>
      • elementSum

        public double elementSum()
        Description copied from class: AMatrix
        Returns the sum of all elements in this matrix
        Specified by:
        elementSum in interface INDArray
        Overrides:
        elementSum in class AMatrix
      • signumCopy

        public AMatrix signumCopy()
        Description copied from interface: INDArray
        Returns a copy of the array with the signum operator applied to each element
        Specified by:
        signumCopy in interface INDArray
        Overrides:
        signumCopy in class AbstractArray<AVector>
        Returns:
        A new array containing the signums of element values
      • absCopy

        public AMatrix absCopy()
        Description copied from interface: INDArray
        Returns a copy of the array with the abs operator applied to each element
        Specified by:
        absCopy in interface INDArray
        Overrides:
        absCopy in class AbstractArray<AVector>
        Returns:
        A new array containing the absolute element values
      • validate

        public void validate()
        Description copied from interface: INDArray
        Validates the internal data structure of the INDArray. Throws an exception on failure. Failure indicates a serious bug and/or data corruption.
        Specified by:
        validate in interface INDArray
        Overrides:
        validate in class AMatrix
      • hasUncountable

        public boolean hasUncountable()
        Description copied from class: AMatrix
        Checks to see if any element in the matrix is NaN of Infinite.
        Specified by:
        hasUncountable in interface INDArray
        Overrides:
        hasUncountable in class AMatrix
        Returns:
        True if any element in the matrix is NaN of Infinite.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.