Comments (6)
If the input is : '{"type":"Complex64","re":5,"im":3}'
output is as follows : { re: 5, im: 3 }
is this correct?
from stdlib.
@TheNourhan No, that is not correct. Please re-read the OP. The OP is not requesting to materialize a JSON serialized string, but the result of z.toString()
.
from stdlib.
@kgryte Can you assign this issue to me.
from stdlib.
Thanks for volunteering to work on this issue @marsian83. Please feel free to submit a PR implementing this feature.
from stdlib.
Hi, @kgryte @Planeshifter
while approaching this I thought making an assert module @stdlib/assert/is-complexstring
can make it easier to implement this and also parse-float-64 and would even help in any other scenarios where such an assertion might come in handy in a uniform and consistent manner.
Do you reckon this would be a good approach? or should I enclose the string validation logic within @stdlib/complex/parse-float32
itself
from stdlib.
@marsian83 Thanks for the thoughts. How about you create an RFC issue with the proposed package, API, and expected behavior? Once we review that and it is accepted, this could be a good candidate for a PR. That work?
from stdlib.
Related Issues (20)
- [RFC]: add various physical constants (tracking issue) HOT 7
- `binding.gyp` not found in math-base-special-ln HOT 3
- [RFC]: add `math/base/special/rad2degf` HOT 2
- [RFC]: add `blas/base/zdotu` HOT 8
- [RFC]: add `math/base/special/asinhf` HOT 5
- [RFC]: add `help()` documentation pager in REPL HOT 1
- Binomcoef function evaluation is not memoized and can take very long to run given large n HOT 5
- [RFC]: automated/make recipe for generation of manifest files for C implementation of a package
- [RFC]: refactor `math/base/special/log2` to follow FreeBSD version 12.2.0 HOT 1
- [RFC]: add `blas/base/csscal`
- [RFC]: add stdlib ASCII art in REPL's default welcome message HOT 1
- [RFC]: implement a broader range of statistical distributions (tracking issue) HOT 1
- [RFC]: add `blas/base/grot` HOT 33
- [RFC]: add encoding and decoding functions in stdlib HOT 3
- [RFC]: add C implementation for `math/base/special/binomcoef` HOT 1
- [RFC]: Upgrade OpenBLAS dependency HOT 4
- [RFC]: add tests for `@stdlib/ndarray/base/nullary` HOT 5
- [RFC]: add `fs/stat` HOT 1
- [RFC]: refactor `@stdlib/complex` into sub-namespaces HOT 3
- [RFC]: move `@stdlib/math/base/ops/*` packages to `@stdlib/number/*` and `@stdlib/complex/*`
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 stdlib.