[Closed] Type hierarchy for vectors and matrices #345
              
                
                  
                  
                    Answered
                  
                  by
                    WhiteBlackGoose
                  
              
          
                  
                    
                      WhiteBlackGoose
                    
                  
                
                  asked this question in
                Q&A
              
            -
| 
         Here we should design the API and behaviour of linear algebra for the project. 1. What do we want?Which types do we want?  2. How should they inherit?Vector : Matrix
Matrix : EntityVector : Matrix
Matrix : Tensor
Tensor : EntityVector : Entity
Matrix : Entity
Tensor : Entity // depends on whether we need TensorVector : Entity, IVector
Matrix : Entity, IMatrix
Tensor : Entity, ITensor // depends on whether we need Tensor3. Operations on themWhen being part of an expression, should it keep elementwise operations only, according to #168 or not?  | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            WhiteBlackGoose
          
      
      
        Mar 23, 2021 
      
    
    Replies: 1 comment
-
| 
         Alright, the solution is: no vector, no tensor. Only matrix. All operations accordingly. Track the PR.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        WhiteBlackGoose
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Alright, the solution is: no vector, no tensor. Only matrix. All operations accordingly. Track the PR.