image thumbnail

updated 3 years ago

Newton's method done right by Andrew Knyazev

Andrew Knyazev

Newton's method for solving systems of nonlinear equations, including nonsquare and inconsistent (mathematics, physics, modeling)

Newton(X,F,X0,varargin)

NewtonDemoRunMe.m

image thumbnail

updated 3 years ago

ODE Tutorial Demo by Andrew Knyazev

Andrew Knyazev

Advanced examples of using the MATLAB Symbolic Math Toolbox for Ordinary Differential Equations (ode, symbolic, movies)

ODEtutorial.m

image thumbnail

updated 3 years ago

lobpcg.m by Andrew Knyazev

Andrew Knyazev

LOBPCG solves Hermitian partial generalized eigenproblems using preconditioning, competes with eigs (linear algebra, symmetric, partial)

...

image thumbnail

updated 3 years ago

Best polynomial approximation in uniform norm by Andrew Knyazev

Andrew Knyazev

For a given function on an interval, the code calculates the min-max approximation by a polynomial. (mathematics, statistics, optimization)

polyfitinf(M,N,K,X,Y,EPSH,MAXIT,REF0)

image thumbnail

updated 3 years ago

pcg.m with 'null' and 'flex' options by Andrew Knyazev

Andrew Knyazev

Preconditioned Conjugate Gradients handles homogeneous equations and nonsymmetric preconditioning (linear algebra, preconditioned, conjugate)

pcg(A,b,tol,maxit,M1,M2,x0,opts1,opts2,varargin)

image thumbnail

updated 3 years ago

Laplacian in 1D, 2D, or 3D by Andrew Knyazev

Andrew Knyazev

Sparse (1-3)D Laplacian on a rectangular grid with exact eigenpairs. (matrix, mathematics, laplacian)

laplacian(varargin)

image thumbnail

updated 3 years ago

subspacea.m by Andrew Knyazev

Andrew Knyazev

Angles between subspaces. Canonical correlations. (linear algebra, principal, angle)

subspacea(F,G,A)

image thumbnail

updated almost 5 years ago

matlab2hypre and hypre2matlab by Andrew Knyazev

Andrew Knyazev

Read and write files with sparse matrices and vectors in hypre format (mathematics, data export, data import)

hypreIJ2matlab(filename)

hypreParVectors2matlab(filename,varargin)

matlab2hypreIJ(A, num_procs, filename, varargin)

image thumbnail

updated almost 5 years ago

majorization check by Andrew Knyazev

Andrew Knyazev

checks if X is (weakly) majorized by Y, where X and Y must be numeric arrays. (mathematics, statistics, majorization)

[s,z]=majle(x,y,majleTol)

image thumbnail

updated 5 years ago

subspace.m by Andrew Knyazev

Andrew Knyazev

Angle between subspaces. (linear algebra, subspace, angle)

subspace(A,B)

image thumbnail

updated 5 years ago

ortha.m by Andrew Knyazev

Andrew Knyazev

Orthonormalization Relative to matrix A (linear algebra, orthonormalization, relative)

[Q,varargout]=ortha(A,X)

Contact us