{ } Raw JSON

bundles / scipy 1.17.1 / scipy / linalg / _special_matrices / helmert

function

scipy.linalg._special_matrices:helmert

source: /scipy/linalg/_special_matrices.py :523

Signature

def   helmert ( n full = False )

Summary

Create an Helmert matrix of order n.

Extended Summary

This has applications in statistics, compositional or simplicial analysis, and in Aitchison geometry.

Parameters

n : int

The size of the array to create.

full : bool, optional

If True the (n, n) ndarray will be returned. Otherwise the submatrix that does not include the first row will be returned. Default: False.

Returns

M : ndarray

The Helmert matrix. The shape is (n, n) or (n-1, n) depending on the full argument.

Examples

from scipy.linalg import helmert
helmert(5, full=True)

Aliases

  • scipy.linalg.helmert