# Tag Info

### Nonnegative Least Squares Algorithm (NNLS)

We can compare 6 algorithms based on FindMinimum,NMinimize, ConvexOptimization, ...

### Is it possible to use the DGEEV and DSYEV LAPACK subroutines in Mathematica?

You can use LibraryLink to call LAPACK directly. It involves however quite a lot of boilerplate code. Here is an example: ...
Accepted

### How to obtain independent variables from a set of linear constraints

First one can set up and solve the system. ...

### How to replace anti diagonal elements of a matrix

From The Procedural Dodo: If you can do it in place (destroying the orginal m), this will be fast: ...
Accepted

### How to replace anti diagonal elements of a matrix

use element-wise operation. keep the diag-matrix and reverse it. anti = mat // Diagonal // (*take diag*) DiagonalMatrix // (*make mat*) Map[Reverse] (*rev it*) {...
Accepted

### How can I have Mathematica solve the curve equation when nested functions are involved?

You would have to come up with a model in order to fit those curves. No automated system can do that for you. However, that may not be the most useful approach. For instance some properties of the ...

### How to replace anti diagonal elements of a matrix

Making use of the method posted by ciao (in an answer to How to zero (or replace) the diagonal of a square matrix?) ...

### Solution to a linear equation with minimum rank

We can use Nonnegative Least Squares Algorithm (NNLS) discussed here to solve matrix equation X.M=A with constraints ...

### How can I generate a tridiagonal block matrix?

The matrix you have is block tridiagonal and block Toeplitz. I'll give two methods: one that uses nothing but documented functionality, and one that uses undocumented functionality. First up is an ...
1 vote
Accepted

### Generalised KroneckerProduct that works like Outer[]

I'm not sure what to make of your KroneckerProduct comment, but I think what you're looking for is MapThread: MapThread[f, {matA, matB}, 2]
1 vote

### Regression of a set of (2-element) vectors on another set of (2-element) vectors

I think you have three problems that get in the way of what I think you're asking. I think you want to perform a regression on the following model (which also isn't the model I think you should be ...

Only top scored, non community-wiki answers of a minimum length are eligible