Documentation of 'mikera.arrayz.impl.BroadcastScalarArray' Java class
BroadcastScalarArray
mikera.arrayz.impl

Class BroadcastScalarArray

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<INDArray>, java.lang.Iterable<INDArray>, INDArray


    public class BroadcastScalarArray
    extends BaseShapedArray
    Specialized array class representing the broadcasting of a scalar value to fill an entire array. Generally not mutable.
    See Also:
    Serialized Form
    • Method Detail

      • create

        public static INDArray create(double value,
                                      int[] targetShape)
      • get

        public double get(int... indexes)
        Description copied from interface: INDArray
        Returns the double value at the specified index position in an array
      • set

        public void set(int[] indexes,
                        double value)
        Description copied from interface: INDArray
        Sets the element at the given indexed position in a mutable array
      • slice

        public INDArray slice(int majorSlice)
        Description copied from interface: INDArray
        Returns the specified major slice of this array as a view (slice along dimension 0) 0 dimensional slice results are permitted, but attempting to slice a 0 dimensional array will result in an error.
      • slice

        public INDArray slice(int dimension,
                              int index)
        Description copied from interface: INDArray
        Returns a slice view of this array along the specified dimension
      • isView

        public boolean isView()
        Description copied from interface: INDArray
        Return true if this array is considered as a view type. This indicates (but does not guarantee): a) Data is *likely* to be shared with other arrays, so mutation of one may affect others b) It is *unlikely* to be in the most efficient general purpose format isView is intended to be used as for heuristics. It should *not* be used where the outcome might affect correctness.
      • 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
        Overrides:
        isFullyMutable in class AbstractArray<INDArray>
      • get

        public double get(int x)
        Description copied from interface: INDArray
        Returns the double value at the specified position in a 1D vector
        Specified by:
        get in interface INDArray
        Specified by:
        get in class AbstractArray<INDArray>
      • get

        public double get(int x,
                          int y)
        Description copied from interface: INDArray
        Returns the double value at the specified position in a 2D matrix
        Specified by:
        get in interface INDArray
        Specified by:
        get in class AbstractArray<INDArray>
      • exactClone

        public BroadcastScalarArray exactClone()
        Description copied from interface: INDArray
        Creates a deep clone of an array, using the same class implementation as the original array
        Returns:
        A clone of the original array

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.