Module ojalgo

Interface NormedVectorSpace<T,N extends Comparable<N>>

All Superinterfaces:
Group, Group.Additive<T>, Operation, Operation.Addition<T>, ScalarOperation, ScalarOperation.Multiplication<T,N>, VectorSpace<T,N>
All Known Subinterfaces:
DecompositionStore<N>, Matrix2D<N,M>, MatrixStore<N>, PhysicalStore<N>, Scalar<N>, Tensor<N,T>
All Known Implementing Classes:
Amount, AnyTensor, BasicMatrix, BigScalar, ColumnsSupplier, ComplexNumber, DiagonalStore, ExactDecimal, GenericStore, ImageData, MatrixC128, MatrixH256, MatrixQ128, MatrixR032, MatrixR064, MatrixR128, MatrixTensor, Money, Price, PrimitiveScalar, Quadruple, Quantity, Quaternion, R032Store, R064CSC, R064CSR, R064Store, RationalNumber, RawStore, RowsSupplier, SparseStore, VectorTensor

public interface NormedVectorSpace<T,N extends Comparable<N>> extends VectorSpace<T,N>
Author:
apete
  • Method Details

    • isSmall

      default boolean isSmall(double comparedTo)
      Parameters:
      comparedTo - What to compare with
      Returns:
      true if this is small compared to the magnitude of the input reference value.
    • norm

      double norm()
      this == this.signum().multiply(this.norm())
      Returns:
      The norm
    • signum

      T signum()
      this == this.signum().multiply(this.norm())
      Returns:
      A unit "vector"