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

make Fsa inherit from Array2 and add some operator overloads in Array2 #58

Merged
merged 2 commits into from
Jun 12, 2020

Conversation

qindazhu
Copy link
Collaborator

No description provided.

@csukuangfj
Copy link
Collaborator

+1

@qindazhu qindazhu changed the title add some operator overload functions in Array2 make Fsa inherit from Array2 and add some operator overloads in Array2 Jun 12, 2020
@qindazhu
Copy link
Collaborator Author

Fsa now inherits from Array2, I will replace Fsa with Array2 in those Fsa related algorithms one by one.

@danpovey @csukuangfj Please have a look.

@danpovey
Copy link
Collaborator

LGTM, thanks!

@danpovey
Copy link
Collaborator

OK with me

@csukuangfj
Copy link
Collaborator

+1

@qindazhu
Copy link
Collaborator Author

Thanks! Merging..

@qindazhu qindazhu merged commit 429a076 into k2-fsa:master Jun 12, 2020
@qindazhu qindazhu deleted the haowen-fsa branch June 15, 2020 02:04
struct Fsa {
// TODO(haowen): finally we will remove `arc_indexes` and `arcs`, but for now,
// we would keep them to replace Fsa with Array2 incrementally.
struct Fsa : public Array2<Arc *, int32_t> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean that the stride of the underlying memory is always 1 ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, for FSA.

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

Successfully merging this pull request may close these issues.

3 participants