odl

Getting Started

  • Getting Started

Working with ODL

  • User’s guide – selected topics
  • Mathematical Background

Developer zone

  • Contributing to ODL

Useful facts

  • Frequently asked questions
  • Glossary
  • Release Notes
  • References

API Reference

  • odl
    • applications
    • backends
    • contrib
    • core
      • array_API_support
      • diagnostics
      • discr
      • operator
      • phantom
      • set
      • space
      • sparse
      • util
        • dtype_utils
        • graphics
        • normalize
        • npy_compat
        • numerics
        • print_utils
        • scipy_compatibility
        • sparse
        • testutils
        • utility
        • vectorization
    • functionals
    • solvers
    • trafos
    • AdapterOperator
    • ArrayBackend
    • ArrayBackendChange
    • BroadcastOperator
    • CartesianProduct
    • ComplexEmbedding
    • ComplexModulus
    • ComplexModulusSquared
    • ComplexNumbers
    • ComponentProjection
    • ComponentProjectionAdjoint
    • ConstantOperator
    • DeviceChange
    • DiagonalOperator
    • DiscretizedSpace
    • DiscretizedSpaceElement
    • DistOperator
    • Divergence
    • EmptySet
    • Field
    • FiniteSet
    • FlatteningOperator
    • FunctionalLeftVectorMult
    • Gradient
    • IdentityOperator
    • ImagPart
    • InnerProductOperator
    • Integers
    • IntervalProd
    • Laplacian
    • LinCombOperator
    • LinearSpace
    • MatrixOperator
    • MultiplyOperator
    • NormOperator
    • OpDomainError
    • OpNotImplementedError
    • OpRangeError
    • OpTypeError
    • Operator
    • OperatorComp
    • OperatorLeftScalarMult
    • OperatorLeftVectorMult
    • OperatorPointwiseProduct
    • OperatorRightScalarMult
    • OperatorRightVectorMult
    • OperatorSum
    • OperatorVectorSum
    • PartialDerivative
    • PointwiseInner
    • PointwiseNorm
    • PointwiseSum
    • PowerOperator
    • ProductSpace
    • ProductSpaceOperator
    • RealNumbers
    • RealPart
    • RectGrid
    • RectPartition
    • ReductionOperator
    • Resampling
    • ResizingOperator
    • SamplingOperator
    • ScalingOperator
    • Set
    • SetIntersection
    • SetUnion
    • Strings
    • UniversalSet
    • UniversalSpace
    • WeightedSumSamplingOperator
    • ZeroOperator
    • abs
    • acos
    • acosh
    • add
    • all
    • allclose
    • any
    • arange
    • as_scipy_functional
    • as_scipy_operator
    • asarray
    • asin
    • asinh
    • atan
    • atan2
    • atanh
    • bitwise_and
    • bitwise_invert
    • bitwise_left_shift
    • bitwise_or
    • bitwise_right_shift
    • bitwise_xor
    • can_cast
    • ceil
    • check_device
    • clip
    • cn
    • conj
    • copysign
    • cos
    • cosh
    • cumulative_prod
    • cumulative_sum
    • divide
    • empty
    • empty_like
    • equal
    • exp
    • expm1
    • eye
    • floor
    • floor_divide
    • full
    • full_like
    • get_array_and_backend
    • greater
    • greater_equal
    • hypot
    • imag
    • isclose
    • isfinite
    • isinf
    • isnan
    • less
    • less_equal
    • linspace
    • log
    • log10
    • log1p
    • log2
    • logaddexp
    • logical_and
    • logical_not
    • logical_or
    • logical_xor
    • lookup_array_backend
    • matrix_representation
    • max
    • maximum
    • mean
    • meshgrid
    • min
    • minimum
    • multiply
    • negative
    • nextafter
    • nonuniform_partition
    • not_equal
    • odl_all_equal
    • ones
    • ones_like
    • positive
    • pow
    • power_method_opnorm
    • prod
    • real
    • reciprocal
    • remainder
    • rn
    • round
    • sign
    • signbit
    • sin
    • sinh
    • space_weighting
    • sparse_meshgrid
    • sqrt
    • square
    • std
    • subtract
    • sum
    • tan
    • tanh
    • tensor_space
    • tril
    • triu
    • trunc
    • uniform_discr
    • uniform_discr_fromdiscr
    • uniform_discr_fromintv
    • uniform_discr_frompartition
    • uniform_grid
    • uniform_grid_fromintv
    • uniform_partition
    • uniform_partition_fromgrid
    • uniform_partition_fromintv
    • var
    • vector
    • zeros
    • zeros_like
odl
  • odl
  • core
  • util
  • print_utils
  • View page source

print_utils

Utilities mainly for internal use.

Functions

array_str(a[, nprint])

Stringification of an array.

attribute_repr_string(inst_str, attr_str)

Return a repr string for an attribute that respects line width.

dedent(string[, indent_str, max_levels])

Revert the effect of indentation.

dtype_repr(dtype)

dtype_str(dtype)

indent(string[, indent_str])

Return a copy of string indented by indent_str.

is_string(obj)

Return True if obj behaves like a string, False else.

method_repr_string(inst_str, meth_str[, ...])

Return a repr string for a method that respects line width.

npy_printoptions(**extra_opts)

Context manager to temporarily set NumPy print options.

repr_string(outer_string, inner_strings[, ...])

Return a pretty string for repr.

signature_string(posargs, optargs[, sep, mod])

Return a stringified signature from given arguments.

signature_string_parts(posargs, optargs[, mod])

Return stringified arguments as tuples.

Previous Next

© Copyright 2014-2025 The ODL Contributors.

Built with Sphinx using a theme provided by Read the Docs.