Skip to content
You're not viewing the latest version. Click here to go to latest.
logo
galois
galois.Array.Zeros
Initializing search
    mhostetter/galois
    • Getting Started
    • Basic Usage
    • Tutorials
    • Performance
    • Development
    • API Reference
    • Release Notes
    • Index
    mhostetter/galois
      • Getting Started
      • Array Classes
      • Compilation Modes
      • Element Representation
      • Array Creation
      • Array Arithmetic
      • Polynomials
      • Polynomial Arithmetic
      • Intro to Prime Fields
      • Intro to Extension Fields
      • Prime Fields
      • Binary Extension Fields
      • Benchmarks
      • Installation
      • Linter
      • Unit Tests
      • Documentation
      • galois
        • Arrays
          • CArray
            • Constructors
              • MIdentity
              • MOnes
              • MRandom
              • MRange
              • MZeros
                • Parameters
                  • pshape
                  • pdtype
                • Returns
            • Methods
              • Mcompile
              • Mdisplay
            • Properties
              • Pcharacteristic
              • Pdefault_ufunc_mode
              • Pdegree
              • Pdisplay_mode
              • Pdtypes
              • Pelements
              • Pirreducible_poly
              • Pname
              • Porder
              • Pprimitive_element
              • Pufunc_mode
              • Pufunc_modes
              • Punits
          • VArrayLike
          • VDTypeLike
          • VElementLike
          • VIterableLike
          • VShapeLike
        • Galois fields
          • CFieldArray
            • Constructors
              • M__init__
              • MIdentity
              • MOnes
              • MRandom
              • MRange
              • MVandermonde
              • MVector
              • MZeros
            • String representation
              • M__repr__
              • M__str__
              • Pproperties
            • Methods
              • Madditive_order
              • Marithmetic_table
              • Mcharacteristic_poly
              • Mcolumn_space
              • Mfield_norm
              • Mfield_trace
              • Mis_square
              • Mleft_null_space
              • Mlog
              • Mlu_decompose
              • Mminimal_poly
              • Mmultiplicative_order
              • Mnull_space
              • Mplu_decompose
              • Mprimitive_root_of_unity
              • Mprimitive_roots_of_unity
              • Mrepr_table
              • Mrow_reduce
              • Mrow_space
              • Mvector
            • Properties
              • Pcharacteristic
              • Pdefault_ufunc_mode
              • Pdegree
              • Pdisplay_mode
              • Pdtypes
              • Pelements
              • Pirreducible_poly
              • Pis_extension_field
              • Pis_prime_field
              • Pis_primitive_poly
              • Pname
              • Pnon_squares
              • Porder
              • Pprime_subfield
              • Pprimitive_element
              • Pprimitive_elements
              • Psquares
              • Pufunc_mode
              • Pufunc_modes
              • Punits
          • CGF2
          • FField
          • FGF
          • Primitive elements
            • Fis_primitive_element
            • Fprimitive_element
            • Fprimitive_elements
        • Polynomials
          • CPoly
            • Constructors
              • M__init__
              • MDegrees
              • MIdentity
              • MInt
              • MOne
              • MRandom
              • MRoots
              • MStr
              • MZero
            • String representation
              • M__repr__
              • M__str__
            • Special methods
              • M__call__
              • M__eq__
              • M__int__
              • M__len__
            • Methods
              • Mcoefficients
              • Mderivative
              • Mdistinct_degree_factors
              • Mequal_degree_factors
              • Mfactors
              • Mis_irreducible
              • Mis_primitive
              • Mis_square_free
              • Mreverse
              • Mroots
              • Msquare_free_factors
            • Properties
              • Pcoeffs
              • Pdegree
              • Pdegrees
              • Pfield
              • Pis_monic
              • Pnonzero_coeffs
              • Pnonzero_degrees
          • VPolyLike
          • Irreducible polynomials
            • Firreducible_poly
            • Firreducible_polys
          • Primitive polynomials
            • Fconway_poly
            • Fmatlab_primitive_poly
            • Fprimitive_poly
            • Fprimitive_polys
          • Interpolating polynomials
            • Flagrange_poly
        • Forward error correction
          • CBCH
            • Constructors
              • M__init__
            • String representation
              • M__repr__
              • M__str__
            • Methods
              • Mdecode
              • Mdetect
              • Mencode
            • Properties
              • Pd
              • Pfield
              • PG
              • Pgenerator_poly
              • PH
              • Pis_narrow_sense
              • Pis_primitive
              • Pis_systematic
              • Pk
              • Pn
              • Proots
              • Pt
          • CReedSolomon
            • Constructors
              • M__init__
            • String representation
              • M__repr__
              • M__str__
            • Methods
              • Mdecode
              • Mdetect
              • Mencode
            • Properties
              • Pc
              • Pd
              • Pfield
              • PG
              • Pgenerator_poly
              • PH
              • Pis_narrow_sense
              • Pis_systematic
              • Pk
              • Pn
              • Proots
              • Pt
          • Fbch_valid_codes
          • Fgenerator_to_parity_check_matrix
          • Fparity_check_to_generator_matrix
          • Fpoly_to_generator_matrix
          • Froots_to_parity_check_matrix
        • Linear sequences
          • CFLFSR
            • Constructors
              • M__init__
              • MTaps
            • String representation
              • M__repr__
              • M__str__
            • Methods
              • Mreset
              • Mstep
              • Mto_galois_lfsr
            • Properties
              • Pcharacteristic_poly
              • Pfeedback_poly
              • Pfield
              • Pinitial_state
              • Porder
              • Pstate
              • Ptaps
          • CGLFSR
            • Constructors
              • M__init__
              • MTaps
            • String representation
              • M__repr__
              • M__str__
            • Methods
              • Mreset
              • Mstep
              • Mto_fibonacci_lfsr
            • Properties
              • Pcharacteristic_poly
              • Pfeedback_poly
              • Pfield
              • Pinitial_state
              • Porder
              • Pstate
              • Ptaps
          • Fberlekamp_massey
        • Transforms
          • Fintt
          • Fntt
        • Number theory
          • Divisibility
            • Fare_coprime
            • Fegcd
            • Feuler_phi
            • Fgcd
            • Flcm
            • Fprod
            • Ftotatives
          • Congruences
            • Fcarmichael_lambda
            • Fcrt
            • Fis_cyclic
            • Fjacobi_symbol
            • Fkronecker_symbol
            • Flegendre_symbol
          • Primitive roots
            • Fis_primitive_root
            • Fprimitive_root
            • Fprimitive_roots
          • Integer arithmetic
            • Filog
            • Firoot
            • Fisqrt
        • Factorization
          • Prime factorization
            • Ffactors
          • Composite factorization
            • Fdivisor_sigma
            • Fdivisors
          • Specific factorization algorithms
            • Fperfect_power
            • Fpollard_p1
            • Fpollard_rho
            • Ftrial_division
        • Primes
          • Prime number generation
            • Fkth_prime
            • Fmersenne_exponents
            • Fmersenne_primes
            • Fnext_prime
            • Fprev_prime
            • Fprimes
            • Frandom_prime
          • Primality tests
            • Fis_composite
            • Fis_perfect_power
            • Fis_powersmooth
            • Fis_prime
            • Fis_prime_power
            • Fis_smooth
            • Fis_square_free
          • Specific primality tests
            • Ffermat_primality_test
            • Fmiller_rabin_primality_test
        • Configuration
          • Fget_printoptions
          • Fprintoptions
          • Fset_printoptions
      • Versioning
      • v0.1.0
      • v0.0.33
      • v0.0.32
      • v0.0.31
      • v0.0.30
      • v0.0.29
      • v0.0.28
      • v0.0.27
      • v0.0.26
      • v0.0.25
      • v0.0.24
      • v0.0.23
      • v0.0.22
      • v0.0.21
      • v0.0.20
      • v0.0.19
      • v0.0.18
      • v0.0.17
      • v0.0.16
      • v0.0.15
      • v0.0.14
      • Index
    • Parameters
      • pshape
      • pdtype
    • Returns
    classmethod galois.Array.Zeros(shape: ShapeLike, dtype: DTypeLike | None = None) → Array

    Creates an array of all zeros.

    Parameters¶
    shape: ShapeLike¶

    A NumPy-compliant shape tuple.

    dtype: DTypeLike | None = None¶

    The numpy.dtype of the array elements. The default is None which represents the smallest unsigned data type for this Array subclass (the first element in dtypes).

    Returns¶

    An array of zeros.

    Back to top
    Previous galois.Array.Range
    Next galois.Array.compile
    © Copyright 2020-2022, Matt Hostetter.
    Created using Sphinx 5.3.0. and Sphinx-Immaterial