koblas

Norm

enum Norm : Enum<Norm> (source)

Norm choices shared by Vector.norm and Matrix.norm; each operation documents its supported choices.

Entries

Link copied to clipboard

Sum of absolute vector entries, or the largest absolute column sum of a matrix.

Link copied to clipboard

Euclidean vector norm. The spectral matrix norm is not supported.

Link copied to clipboard

Maximum absolute vector entry, or the largest absolute row sum of a matrix.

Link copied to clipboard

Square root of the sum of squared matrix entries. Not supported for vectors.

Link copied to clipboard

Maximum absolute entry. Equivalent to Infinity for vectors; distinct from it for matrices.

Properties

entries

Returns a representation of an immutable list of all enum entries, in the order they're declared.

This method may be used to iterate over the enum entries.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

valueOf

fun valueOf(value: String): Norm(source)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws

if this enum type has no constant with the specified name

values

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.