gradient_invariant_orthogonality_salad: Gradient of the Invariant Orthogonality Defect Measure

View source: R/multiscaleSVDxpts.R

gradient_invariant_orthogonality_saladR Documentation

Gradient of the Invariant Orthogonality Defect Measure

Description

This function computes the gradient of the orthogonality defect measure with respect to the input matrix 'A'. The gradient is useful for optimization techniques that require gradient information. The gradient will be zero for matrices where 'AtA' equals the diagonal matrix 'D'.

Usage

gradient_invariant_orthogonality_salad(A)

Arguments

A

A numeric matrix.

Value

A numeric matrix representing the gradient of the orthogonality defect measure.

Examples

# library(salad)
# A <- matrix(runif(20), nrow = 10, ncol = 2)
# gradient_invariant_orthogonality_salad(A)

stnava/ANTsR documentation built on April 13, 2025, 4:10 a.m.