Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

impl. multiply() function (almost same as numpy.multiply) #124

Closed
t-hishinuma opened this issue May 26, 2022 · 4 comments
Closed

impl. multiply() function (almost same as numpy.multiply) #124

t-hishinuma opened this issue May 26, 2022 · 4 comments
Milestone

Comments

@t-hishinuma
Copy link
Contributor

No description provided.

@t-hishinuma t-hishinuma added this to the 0.16.2 milestone May 26, 2022
@t-hishinuma
Copy link
Contributor Author

vector's multiply is difficult

image

@t-hishinuma
Copy link
Contributor Author

and, We cant impl N*1 vector and 1*N vector multiply (output is N*N matrix ). It is needed transpose.
This is serious program of our API.

@t-hishinuma
Copy link
Contributor Author

t-hishinuma commented Jun 6, 2022

I implement times function

vector (same as VML)

  • times(x, y, z)
    • z[i] = x[i] * y[i]
  • times(scalar, x, y)
    • y[i] = alpha * x[i]

matrix

  • times(alpha, A, B)
    • B[i][j] = alpha * A[i][j]
  • times_row(vec, A, B);
    • B[i][j] = A[i][j] * x[j]
  • times_row(vec, A, num, B)
    • B[num][j] = A[num][j] * x[j]
  • times_col(vec, A, B);
    • B[i][j] = A[i][j] * x[j]
  • times_col(vec, A, num, B)
    • B[i][num] = A[i][num] * x[i]

@t-hishinuma
Copy link
Contributor Author

t-hishinuma commented Jun 6, 2022

What namespace do these functions belong to?

I plan to write these functions in the monolish::blas namespace

t-hishinuma pushed a commit that referenced this issue Jun 14, 2022
Vector matirx times line

Closes #124

See merge request ricos/monolish!472
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant