Comments (6)
The Fortran source code says that VECTOR
, the vector with which you compute the product, should be of size n
. That's probably an error.
from cutest.jl.
This results in no errors at all:
diff --git a/issue126.jl b/issue126.jl
index ed23ffa..24b3de3 100644
--- a/issue126.jl
+++ b/issue126.jl
@@ -22,12 +22,14 @@ function foo()
err_sum1 = 0.0
err_sum2 = 0.0
+ vect = ones(Cdouble, n)
+
nnzr, Ir, r = Cint[0], Array{Cint}(n), zeros(n)
- ushprod(io_err, Cint[n], goth, x0, Cint[1], Cint[1], Cdouble[1.0], nnzr, Ir, r)
+ ushprod(io_err, Cint[n], goth, x0, Cint[1], Cint[1], vect, nnzr, Ir, r)
CUTEst.@cutest_error
for i = 1:N
nnzr2, Ir2, r2 = Cint[0], Array{Cint}(n), zeros(n)
- ushprod(io_err, Cint[n], goth, x0, Cint[1], Cint[1], Cdouble[1.0], nnzr2, Ir2, r2)
+ ushprod(io_err, Cint[n], goth, x0, Cint[1], Cint[1], vect, nnzr2, Ir2, r2)
CUTEst.@cutest_error
if norm(r - r2) > 1e-6
err_count1 += 1
@@ -41,7 +43,7 @@ function foo()
for i = (N+1):2N
nnzr2, Ir2, r2 = Cint[0], Array{Cint}(n), zeros(n)
- ushprod(io_err, Cint[n], goth, x0, Cint[1], Cint[1], Cdouble[1.0], nnzr2, Ir2, r2)
+ ushprod(io_err, Cint[n], goth, x0, Cint[1], Cint[1], vect, nnzr2, Ir2, r2)
CUTEst.@cutest_error
if norm(r - r2) > 1e-6
err_count2 += 1
@@ -64,4 +66,4 @@ function foo()
end
end
-foo()
\ No newline at end of file
+foo()
The size of VECTOR
is consistent in the library but I wonder if it's intentional.
from cutest.jl.
Ah, thanks. I though it would use the value of nnz_vector
. Not a bug, so closing.
from cutest.jl.
We should be sure our doc is clear about that.
from cutest.jl.
For the core interface I just copied the DESCRIPTION
in the man
. The only further description is the function call and the types of each parameter. Should I add the disclaimer above as additional information?
from cutest.jl.
It should say somewhere that the input and output vectors are of size n
, otherwise, it's tempting to think that they should only contain the nonzero elements.
from cutest.jl.
Related Issues (20)
- ERROR: ArgumentError: NULL library handle HOT 15
- Issue with -lSystem HOT 3
- `jac_coord!` memory allocation HOT 2
- Try syntax `CUTEstModel("...") do nlp` to allow automatic closing of nlp
- Check eval counters against those from CUTEst
- Unit test fails for HS14
- Improve `lin_cons` computation
- Use `increment!` and `decrement!` functions HOT 3
- change license to MIT?
- Mislcassified problems HOT 4
- Remove allocations in CUTEst.jl
- Fix the documentation
- gfortran error HOT 10
- KeyError: key "MASTSIF" not found HOT 7
- How to specify the size of the test problem? HOT 2
- NLPModels computes gradient with elements out of order HOT 9
- jth_hess_coord! seems not implemented HOT 1
- CUTEst.jl and AutoDiff -- compute high-order derivatives HOT 10
- Function "NONCVXUN" HOT 5
- Make the package loadable in Windows even though it is not usable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cutest.jl.