This version will be released as 0.6.0 after rOpenSci statistical software review.
mspca() and tpm() now accept an all-numeric data.frame as M (converted with as.matrix()); a data.frame with non-numeric columns is an error.type and divisor are matched case-insensitively. Boolean arguments (verbose, center, scale, checkPSD) must be TRUE or FALSE; the numeric aliases 0/1 are no longer accepted.feasibilityConstraintType must be exactly 0 or 1, in mspca(), summary.mspca() and feasibility_violation_off().control field recording the algorithmic parameters used.cov(use = ...)) and the use of alternative covariance estimators.@noRd); added CODE_OF_CONDUCT.md, a life cycle statement and the srr statistical-software standards annotations.mspca() now records feasibilityConstraintType and nonredundancy in the returned object. nonredundancy holds two r x r matrices, orthogonality (\eqn{|u_t^\top u_s|}) and uncorrelatedness (\eqn{|u_t^\top \Sigma u_s| / \mathrm{tr}(\Sigma)}).summary.mspca() now displays the feasibilityConstraintType used at fitting and the feasibility violation matrix in nonredundancy instead of recomputing them. Its printed output now names the constraint definition in use and points to the stored matrices for the other one.tr(Sigma), i.e. the pairwise term is |u_t' Sigma u_s| / tr(Sigma). The normalized measure is now invariant to a rescaling of Sigma. This affects mspca(..., feasibilityConstraintType = 1) (the feasibility_violation field, the stopping rule, and the dual step size), feasibility_violation_off(), and the uncorrelatedness matrix in nonredundancy. Numerical results under feasibilityConstraintType = 1 may differ from earlier versions unless the input has tr(Sigma) = 1.mspca().snp500 dataset: the market-deflated correlation matrix of daily log-returns for 423 S&P 500 constituents, January 2010 - December 2019 (423 x 423, xz-compressed).mspca() to snp500 comparing the two non-redundancy constraints.mspca() against seven competing implementations on four real datasets. It lives in vignettes/articles/ and is not part of the CRAN build.replication/, the scripts reproducing the benchmarking and case-study results. Build-ignored.DESCRIPTION gains Depends: R (>= 3.5), LazyData: true, LazyDataCompression: xz and BugReports.mspca() and tpm() now take two possible inputs: the covariance/correlation matrix or the data matrix directly. In practice, the functions take single generic argument M together with a type = c("Sigma", "X") selector. type = "Sigma" (the default) treats M as a covariance/correlation matrix (p x p); type = "X" treats M as a raw data matrix (n observations x p variables). The "Sigma" default preserves the behaviour of existing matrix-based calls.Sigma %*% beta is evaluated as t(X) %*% (X %*% beta) / (n - 1) at cost O(np), and the p x p matrix is never materialized. This substantially improves scalability when n << p. The covariance back-end was refactored behind a covariance-operator abstraction (DenseOp / GramOp) shared by both input modes.type = "X": center, scale (covariance vs correlation), and divisor ("n-1" or "n").Sigma input is checked for squareness, symmetry and positive semidefiniteness (checkPSD, symTolerance, psdTolerance); an X input is checked for finiteness, dimensions and (when scaling) zero-variance columns.mspca() results now include variance_explained (per-PC) and total_variance; X-mode results also record inputType, center, scale, divisor, nObs and p.mspca() and tpm() now return S3 objects of class "mspca" and "tpm" respectively, enabling use of standard R generics.print.mspca(): S3 print method displaying the sparse loading matrix restricted to the union of active variables, the percentage of variance explained per PC, and the number of non-zero loadings. Replaces the removed print_mspca().summary.mspca(): produces a per-PC table of sparsity, variance explained, FVE, and cumulative FVE, followed by the full pairwise feasibility violation matrix.library(datasets) calls from examples while keeping explicit datasets::mtcars usage, and added datasets to Suggests to align example dependencies with CRAN guidance.pairwise_correlation() and orthogonality_violation() and replaced them with a unified feasibility_violation_off() helper for feasibility diagnostics across constraint types.mspca() and tpw() through algorithmic and implementation optimizations.mspca() now accepts a new hyper-parameter minRestartTPM that limits the number of random restarts for the truncated power method after the first outer iterationfeasibilityConstraintType parameter to msPCA().orthogonality_violation to feasibility_violation to support both constraint types.feasibility_violation() as orthogonality_violation() to be more explicitpairwise_correlation()