need a person with Risc-v knowledge for a code exercise - riscv

i need some code for a subroutine that converts from RGB888 image format to RGB565 ,(using risc-v) .
nothing much that can accually help

Related

How to convert an array of odes as strings to solvable functions:

I'm currently writing a script in MATLAB to grab and convert a set of ODEs from a text file used in another piece of software as well as the parameter values. It sorts everything, assigns array-based parameter names, i.e. kiir -> var_val(1) etc.
The issue I'm reaching is my functions are as below:
The array of string-form ODEs
They're strings and I had hoped to use the str2func function to translate them into functions and run them through an ODE solver, i.e. ODE45 etc. I've been attempting to get it into a similar form as presented by the ODE45 Mathworks documentation:
Mathworks image
I've been trying to convert them into functions in an array similar to that shown at the bottom of the above image with little success.
I would greatly appreciate any advice and am very happy to answer any questions for clarification.

Take an equation input as a string, then solve it with popen() and bc

So, I need to make a script that can receive an equation stored in a string, and then solve said equation. I want to use popen() to call in the bc program to solve said equation, but I'm not sure exactly how to do that. All the resources I've seen take their input from a FILE or stdin, and none of them explain how to call bc, then give it a string input. I'm not very good at coding in C yet, so I have a very hard time coming up with a solution to this.
I don't know exactly what the equations will be, but they won't be more complex than integers and a few basic operations.

Haskell Crypto.Hash.SHA256 Output

I'm new to Haskell so forgive me for not understanding the basics.
When using the Crypto.Hash.SHA256 to hash the result is something like below.
\159\252\170M\NAK\221\189S\n\191{\197y\t\USUx\143\&3\249\198K}]'\195\nU\154\SI3\199
Can anyone explain what the hell it is I'm looking at?
You're looking at the binary representation of the hash. You're probably used to seeing the hexadecimal representation. To get that, import Data.ByteString.Builder and call toLazyByteString . byteStringHex on it. With the hash in your question, the hexadecimal representation will be 9ffcaa4d15ddbd530abf7bc579091f55788f33f9c64b7d5d27c30a559a0f33c7.

What is the algorithm used in the function Magnitude.most_similar() in the pymagnitude library?

I'm trying to figure out the algorithm of the most_similar function in the pymagnitude library.
I have tried to go to their documentation but the algorithm that they used is not included there
vector = (magnitude_file)
vector.most_similar("king", topn=10)
I'm guessing they used interpolation search but I don't know if i'm right.
P.S Can Someone Help?

Hard coding in C++

I have an assignment to submit in this week. And I did not understand this jargon "hardcode". It's my first class in C++ , where my professor asked me to demonstrate a simple math operation. By using all the 9 integral data types and a single "hard coded" value. Can some one please explain what hardcoding is? I am new to c++ and would appreciate if some one can throw some light on this.
Thanks!
Basically it means that the value is set inside the source code. If you asked for the variable it's not hardcoded, but if you say int x = 5; then x has been hardcoded to 5.

Resources