Giter Club home page Giter Club logo

aimt's Introduction

About me:

Hi there, I'm Pedro πŸ‘‹

I'm passionate about computing and science.

  • 🌱 I’m currently learning more about Java.
  • :octocat: I'm looking contribute to Open Source projects.
  • 🌎 I speak Portuguese and a little bit of English.
  • πŸŽ“ I'm a physicist and researcher.
  • πŸ•οΈ Fun fact: Sometimes I camp out in the middle of nowhere to talk to myself.
  • πŸ˜‰ Fun fact 2: In my country, if you see huge cute hamsters, know they are capivaras.

Connect with me:

LinkedIn Gmail

Languages and tools I use daily:

I know the basics of:



Do you like statistics? You can find more information by clicking here.

Okay, just one more badge, I promise! πŸ˜ƒ

aimt's People

Contributors

carltonbranch avatar lobophf avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

carltonbranch

aimt's Issues

It might be better to rewrite the existing tests.

Existing tests can be improved because I feel that there are many similar codes.. Perhaps the environment can be rewritten considering the test fixtures. Each test of the sub2ind and ind2sub functions could share the same information to decrease the code lines.

Remember the KISS principle

After rethinking about this project, I don't think that inventing conversions different from the traditional ones. I want to say that I must keep only the two main functions (sub2ind and ind2sub) and remove the other conversion functions.

Update the aimt.h file comments

After inserting macros in the aimt.h file, I forgot to update the comments. These are important for generating Doxygen files. However, working with macros requires additional settings. Soon I will to change the aimt.h file.

Add more tests (Google test library)

The tests that have already written cover only a few cases. That is, those where the user enters correct values ​​in the sub2ind and ind2sub functions. However, the code remains fragile because values ​​outside of ranges have not yet been considered. Therefore, the following list of unit tests is crucial.

  • Add unit tests to sub2ind by predicting errors invoked by the inspectSubscripts function.
  • Add unit tests to ind2sub by predicting errors invoked by the inspectIndex function.
  • Add unit tests to prevent the index from being great than the maximum integer possible.

The integer overflow can occur in some cases

The sub2ind function can work with arrays of various dimensions that can certainly return an index value above the limit that an integer can support. Therefore, to prevent the integer overflow, it is necessary to change the sub2ind function so that it returns a long long int.

integer overflow

I made a mistake before regarding the integer overflow. The last element of the arrayOfDimensions must fit in the integer. In other words, I need to compute the maximum product of 9's. This document gave me ideas.

Error messages

It would be nice if the error messages showed the document and the line where it occurred. I'll do this with macros.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.