tf.experimental.numpy.inexact

Abstract base class of all numeric scalar types with a (potentially)

inexact representation of the values in its range, such as floating-point numbers.

T Scalar attribute identical to the corresponding array attribute.

Please see ndarray.T.

base Scalar attribute identical to the corresponding array attribute.

Please see ndarray.base.

data Pointer to start of data.
dtype Get array data-descriptor.
flags The integer value of flags.
flat A 1-D view of the scalar.
imag The imaginary part of the scalar.
itemsize The length of one element in bytes.
nbytes The length of the scalar in bytes.
ndim The number of array dimensions.
real The real part of the scalar.
shape Tuple of array dimensions.
size The number of elements in the gentype.
strides Tuple of bytes steps in each dimension.

Methods

all

Scalar method identical to the corresponding array attribute.

Please see ndarray.all.

any

Scalar method identical to the corresponding array attribute.

Please see ndarray.any.

argmax

Scalar method identical to the corresponding array attribute.

Please see ndarray.argmax.

argmin

Scalar method identical to the corresponding array attribute.

Please see ndarray.argmin.

argsort

Scalar method identical to the corresponding array attribute.

Please see ndarray.argsort.

astype

Scalar method identical to the corresponding array attribute.

Please see ndarray.astype.

byteswap

Scalar method identical to the corresponding array attribute.

Please see ndarray.byteswap.

choose

Scalar method identical to the corresponding array attribute.

Please see ndarray.choose.

clip

Scalar method identical to the corresponding array attribute.

Please see ndarray.clip.

compress

Scalar method identical to the corresponding array attribute.

Please see ndarray.compress.

conj

conjugate

Scalar method identical to the corresponding array attribute.

Please see ndarray.conjugate.

copy

Scalar method identical to the corresponding array attribute.

Please see ndarray.copy.

cumprod

Scalar method identical to the corresponding array attribute.

Please see ndarray.cumprod.

cumsum

Scalar method identical to the corresponding array attribute.

Please see ndarray.cumsum.

diagonal

Scalar method identical to the corresponding array attribute.

Please see ndarray.diagonal.

dump

Scalar method identical to the corresponding array attribute.

Please see ndarray.dump.

dumps

Scalar method identical to the corresponding array attribute.

Please see ndarray.dumps.

fill

Scalar method identical to the corresponding array attribute.

Please see ndarray.fill.

flatten

Scalar method identical to the corresponding array attribute.

Please see ndarray.flatten.

getfield

Scalar method identical to the corresponding array attribute.

Please see ndarray.getfield.

item

Scalar method identical to the corresponding array attribute.

Please see ndarray.item.

itemset

Scalar method identical to the corresponding array attribute.

Please see ndarray.itemset.

max

Scalar method identical to the corresponding array attribute.

Please see ndarray.max.

mean

Scalar method identical to the corresponding array attribute.

Please see ndarray.mean.

min

Scalar method identical to the corresponding array attribute.

Please see ndarray.min.

newbyteorder

newbyteorder(new_order='S', /)

Return a new dtype with a different byte order.

Changes are also made in all fields and sub-arrays of the data type.

The new_order code can be any from the following:

  • 'S' - swap dtype from current to opposite endian

'<', 'little'

- little endian

'>', 'big'

- big endian

'=', 'native'

- native order

'|', 'I'

- ignore (no change to byte order)

Parameters

new_order : str, optional Byte order to force; a value from the byte order specifications above. The default value ('S') results in swapping the current byte order.

Returns

new_dtype : dtype New dtype object with the given change to the byte order.

nonzero

Scalar method identical to the corresponding array attribute.

Please see ndarray.nonzero.

prod

Scalar method identical to the corresponding array attribute.

Please see ndarray.prod.

ptp

Scalar method identical to the corresponding array attribute.

Please see ndarray.ptp.

put

Scalar method identical to the corresponding array attribute.

Please see ndarray.put.

ravel

Scalar method identical to the corresponding array attribute.

Please see ndarray.ravel.

repeat

Scalar method identical to the corresponding array attribute.

Please see ndarray.repeat.

reshape

Scalar method identical to the corresponding array attribute.

Please see ndarray.reshape.

resize

Scalar method identical to the corresponding array attribute.

Please see ndarray.resize.

round

Scalar method identical to the corresponding array attribute.

Please see ndarray.round.

searchsorted

Scalar method identical to the corresponding array attribute.

Please see ndarray.searchsorted.

setfield

Scalar method identical to the corresponding array attribute.

Please see ndarray.setfield.

setflags

Scalar method identical to the corresponding array attribute.

Please see ndarray.setflags.

sort

Scalar method identical to the corresponding array attribute.

Please see ndarray.sort.

squeeze

Scalar method identical to the corresponding array attribute.

Please see ndarray.squeeze.

std

Scalar method identical to the corresponding array attribute.

Please see ndarray.std.

sum

Scalar method identical to the corresponding array attribute.

Please see ndarray.sum.

swapaxes

Scalar method identical to the corresponding array attribute.

Please see ndarray.swapaxes.

take

Scalar method identical to the corresponding array attribute.

Please see ndarray.take.

tobytes

tofile

Scalar method identical to the corresponding array attribute.

Please see ndarray.tofile.

tolist

Scalar method identical to the corresponding array attribute.

Please see ndarray.tolist.

tostring

Scalar method identical to the corresponding array attribute.

Please see ndarray.tostring.

trace

Scalar method identical to the corresponding array attribute.

Please see ndarray.trace.

transpose

Scalar method identical to the corresponding array attribute.

Please see ndarray.transpose.

var

Scalar method identical to the corresponding array attribute.

Please see ndarray.var.

view

Scalar method identical to the corresponding array attribute.

Please see ndarray.view.

__abs__

abs(self)

__add__

Return self+value.

__and__

Return self&value.

__array__

sc.array(dtype) return 0-dim array from scalar with specified dtype

__bool__

True if self else False

__eq__

Return self==value.

__floordiv__

Return self//value.

__ge__

Return self>=value.

__getitem__

Return self[key].

__gt__

Return self>value.

__invert__

~self

__le__

Return self<=value.

__lshift__

Return self<<value.

__lt__

Return self<value.

__mod__

Return self%value.

__mul__

Return self*value.

__ne__

Return self!=value.

__neg__

-self

__or__

Return self|value.

__pos__

+self

__pow__

Return pow(self, value, mod).

__radd__

Return value+self.

__rand__

Return value&self.

__rfloordiv__

Return value//self.

__rlshift__

Return value<<self.

__rmod__

Return value%self.

__rmul__

Return value*self.

__ror__

Return value|self.

__rpow__

Return pow(value, self, mod).

__rrshift__

Return value>>self.

__rshift__

Return self>>value.

__rsub__

Return value-self.

__rtruediv__

Return value/self.

__rxor__

Return value^self.

__sub__

Return self-value.

__truediv__

Return self/value.

__xor__

Return self^value.